@visactor/vchart-types 1.8.6 → 1.8.7
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 +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/component/brush/brush.d.ts +1 -1
- package/types/component/legend/discrete/legend.d.ts +1 -0
- package/types/component/marker/mark-point/interface/theme.d.ts +1 -0
- package/types/layout/interface.d.ts +4 -1
- package/types/layout/layout-item.d.ts +5 -1
- package/types/model/interface.d.ts +2 -0
- package/types/model/layout-model.d.ts +8 -0
- package/types/series/bar/bar.d.ts +4 -0
- package/types/series/base/constant.d.ts +4 -0
- package/types/series/polar/polar.d.ts +2 -0
- package/types/series/range-column/range-column.d.ts +5 -1
- package/types/series/word-cloud/base.d.ts +2 -2
- package/types/series/word-cloud/interface.d.ts +1 -1
|
@@ -39,7 +39,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
|
|
|
39
39
|
};
|
|
40
40
|
private _needInitOutState;
|
|
41
41
|
private _cacheInteractiveRangeAttrs;
|
|
42
|
-
private
|
|
42
|
+
private _needDisablePickable;
|
|
43
43
|
init(): void;
|
|
44
44
|
static getSpecInfo(chartSpec: any): Maybe<IModelSpecInfo[]>;
|
|
45
45
|
created(): void;
|
|
@@ -17,6 +17,7 @@ export declare class DiscreteLegend extends BaseLegend<IDiscreteLegendSpec> {
|
|
|
17
17
|
protected _initLegendData(): DataView;
|
|
18
18
|
protected _getSeriesLegendField(s: ISeries): string;
|
|
19
19
|
protected _initSelectedData(): void;
|
|
20
|
+
private _getLegendDefaultData;
|
|
20
21
|
private _addDefaultTitleText;
|
|
21
22
|
protected _getLegendAttributes(rect: ILayoutRect): any;
|
|
22
23
|
protected _getLegendConstructor(): typeof LegendComponent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
2
|
import type { StringOrNumber } from '../typings/common';
|
|
3
|
-
import type { IOrientType, IRect } from '../typings/space';
|
|
3
|
+
import type { IOrientType, IPadding, IRect } from '../typings/space';
|
|
4
4
|
import type { IPoint } from '../typings/coordinate';
|
|
5
5
|
import type { ILayoutNumber, ILayoutPaddingSpec, ILayoutPoint, ILayoutRect, ILayoutType } from '../typings/layout';
|
|
6
6
|
import type { ILayoutModel } from '../model/interface';
|
|
@@ -56,6 +56,8 @@ export interface ILayoutItem {
|
|
|
56
56
|
layoutPaddingTop: number;
|
|
57
57
|
layoutPaddingRight: number;
|
|
58
58
|
layoutPaddingBottom: number;
|
|
59
|
+
indent: IPadding;
|
|
60
|
+
layoutExcludeIndent: IRect;
|
|
59
61
|
layoutOffsetX: number;
|
|
60
62
|
layoutOffsetY: number;
|
|
61
63
|
layoutLevel: number;
|
|
@@ -87,6 +89,7 @@ export interface ILayoutItemSpec {
|
|
|
87
89
|
layoutLevel?: number;
|
|
88
90
|
orient?: IOrientType;
|
|
89
91
|
padding?: ILayoutPaddingSpec;
|
|
92
|
+
indent?: ILayoutPaddingSpec;
|
|
90
93
|
noOuterPadding?: boolean;
|
|
91
94
|
width?: ILayoutNumber;
|
|
92
95
|
maxWidth?: ILayoutNumber;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ILayoutModel } from './../model/interface';
|
|
2
|
-
import type { IRect, IPoint } from '../typings';
|
|
2
|
+
import type { IPadding, IRect, IPoint } from '../typings';
|
|
3
3
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
4
|
import type { ILayoutItem, ILayoutItemInitOption, ILayoutItemSpec } from './interface';
|
|
5
5
|
import type { IChartLayoutOption } from '../chart/interface/common';
|
|
@@ -39,6 +39,10 @@ export declare class LayoutItem implements ILayoutItem {
|
|
|
39
39
|
layoutPaddingTop: ILayoutItem['layoutPaddingTop'];
|
|
40
40
|
layoutPaddingRight: ILayoutItem['layoutPaddingRight'];
|
|
41
41
|
layoutPaddingBottom: ILayoutItem['layoutPaddingBottom'];
|
|
42
|
+
protected _indent: IPadding;
|
|
43
|
+
get indent(): IPadding;
|
|
44
|
+
private _layoutExcludeIndent;
|
|
45
|
+
get layoutExcludeIndent(): IRect;
|
|
42
46
|
layoutOffsetX: ILayoutItem['layoutOffsetX'];
|
|
43
47
|
layoutOffsetY: ILayoutItem['layoutOffsetY'];
|
|
44
48
|
layoutLevel: ILayoutItem['layoutLevel'];
|
|
@@ -89,6 +89,8 @@ export interface ILayoutModel extends IModel {
|
|
|
89
89
|
setLayoutStartPosition: (pos: Partial<IPoint>) => void;
|
|
90
90
|
getLayoutRect: () => ILayoutRect;
|
|
91
91
|
setLayoutRect: (rect: Partial<ILayoutRect>, levelMap?: Partial<ILayoutRect>) => void;
|
|
92
|
+
getLayoutPositionExcludeIndent: () => IPoint;
|
|
93
|
+
getLayoutRectExcludeIndent: () => ILayoutRect;
|
|
92
94
|
getLastComputeOutBounds: () => IBoundsLike;
|
|
93
95
|
getBoundsInRect: (rect: ILayoutRect, fullRect: ILayoutRect) => IBoundsLike;
|
|
94
96
|
afterSetLayoutStartPoint: (pos: ILayoutPoint) => void;
|
|
@@ -23,6 +23,14 @@ export declare abstract class LayoutModel<T extends IModelSpec> extends BaseMode
|
|
|
23
23
|
onLayoutEnd(ctx: any): void;
|
|
24
24
|
afterSetLayoutStartPoint(_pos: ILayoutPoint): void;
|
|
25
25
|
protected _forceLayout(): void;
|
|
26
|
+
getLayoutPositionExcludeIndent(): {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
};
|
|
30
|
+
getLayoutRectExcludeIndent(): {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
26
34
|
getLayoutStartPoint(): IPoint;
|
|
27
35
|
setLayoutStartPosition(pos: Partial<IPoint>): any;
|
|
28
36
|
getLayoutRect(): ILayoutRect;
|
|
@@ -36,6 +36,10 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
|
|
|
36
36
|
private _shouldDoPreCalculate;
|
|
37
37
|
private _calculateStackRectPosition;
|
|
38
38
|
private _calculateRectPosition;
|
|
39
|
+
protected _dataToPosX(datum: Datum): number;
|
|
40
|
+
protected _dataToPosX1(datum: Datum): number;
|
|
41
|
+
protected _dataToPosY(datum: Datum): number;
|
|
42
|
+
protected _dataToPosY1(datum: Datum): number;
|
|
39
43
|
initBandRectMarkStyle(): void;
|
|
40
44
|
protected _initBarBackgroundMarkStyle(): void;
|
|
41
45
|
initLinearRectMarkStyle(): void;
|
|
@@ -17,6 +17,8 @@ export declare abstract class PolarSeries<T extends IPolarSeriesSpec = IPolarSer
|
|
|
17
17
|
protected _radiusField: string[];
|
|
18
18
|
getRadiusField(): string[];
|
|
19
19
|
setRadiusField(f: string | string[]): string[];
|
|
20
|
+
protected _specAngleField: string[];
|
|
21
|
+
protected _specRadiusField: string[];
|
|
20
22
|
protected _innerRadiusField: string[];
|
|
21
23
|
get innerRadiusField(): string[];
|
|
22
24
|
setInnerRadiusField(f: string | string[]): string[];
|
|
@@ -3,6 +3,7 @@ import { MarkTypeEnum } from '../../mark/interface/type';
|
|
|
3
3
|
import type { SeriesMarkMap } from '../interface';
|
|
4
4
|
import { SeriesTypeEnum } from '../interface/type';
|
|
5
5
|
import { type ITextMark } from '../../mark/text';
|
|
6
|
+
import type { Datum } from '../../typings';
|
|
6
7
|
import type { IRangeColumnSeriesSpec } from './interface';
|
|
7
8
|
export declare const DefaultBandWidth = 6;
|
|
8
9
|
export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRangeColumnSeriesSpec> extends BarSeries<any> {
|
|
@@ -21,7 +22,10 @@ export declare class RangeColumnSeries<T extends IRangeColumnSeriesSpec = IRange
|
|
|
21
22
|
initMark(): void;
|
|
22
23
|
initMarkStyle(): void;
|
|
23
24
|
initLabelMarkStyle(labelMark: ITextMark): void;
|
|
24
|
-
|
|
25
|
+
protected _dataToPosX(datum: Datum): number;
|
|
26
|
+
protected _dataToPosX1(datum: Datum): number;
|
|
27
|
+
protected _dataToPosY(datum: Datum): number;
|
|
28
|
+
protected _dataToPosY1(datum: Datum): number;
|
|
25
29
|
initAnimation(): void;
|
|
26
30
|
protected initTooltip(): void;
|
|
27
31
|
}
|
|
@@ -22,8 +22,8 @@ export declare class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IB
|
|
|
22
22
|
protected _rotateAngles?: number[];
|
|
23
23
|
protected _fontWeightRange?: [number, number];
|
|
24
24
|
protected _textField?: string;
|
|
25
|
-
protected _fontSizeRange?: [number, number];
|
|
26
|
-
setFontSizeRange(fontSizeRange: [number, number]): void;
|
|
25
|
+
protected _fontSizeRange?: [number, number] | 'auto';
|
|
26
|
+
setFontSizeRange(fontSizeRange: [number, number] | 'auto'): void;
|
|
27
27
|
protected _maskShape?: string | WordCloudShapeType;
|
|
28
28
|
protected _isWordCloudShape: boolean;
|
|
29
29
|
protected _keepAspect?: boolean;
|
|
@@ -72,7 +72,7 @@ export interface IWordCloudSeriesBaseSpec extends ISeriesSpec, IAnimationSpec<st
|
|
|
72
72
|
colorList?: string[];
|
|
73
73
|
rotateAngles?: number[];
|
|
74
74
|
fontWeightRange?: [number, number];
|
|
75
|
-
fontSizeRange?: [number, number];
|
|
75
|
+
fontSizeRange?: [number, number] | 'auto';
|
|
76
76
|
maskShape?: string | WordCloudShapeType;
|
|
77
77
|
keepAspect?: boolean;
|
|
78
78
|
random?: boolean;
|