@visactor/vchart-types 1.8.8 → 1.8.9
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/compile/interface/compiler.d.ts +2 -0
- package/types/component/legend/base-legend.d.ts +1 -1
- package/types/component/legend/util.d.ts +1 -1
- package/types/layout/interface.d.ts +3 -3
- package/types/layout/layout-item.d.ts +3 -6
- package/types/model/interface.d.ts +0 -2
- package/types/model/layout-model.d.ts +0 -8
- package/types/typings/layout.d.ts +1 -0
|
@@ -34,6 +34,8 @@ export interface IRenderOption {
|
|
|
34
34
|
pluginList?: string[];
|
|
35
35
|
optimize?: IOptimizeType;
|
|
36
36
|
enableHtmlAttribute?: boolean;
|
|
37
|
+
supportsTouchEvents?: boolean;
|
|
38
|
+
supportsPointerEvents?: boolean;
|
|
37
39
|
}
|
|
38
40
|
export type CompilerListenerParameters = {
|
|
39
41
|
type: EventType;
|
|
@@ -17,7 +17,7 @@ export declare abstract class BaseLegend<T extends ILegendCommonSpec> extends Ba
|
|
|
17
17
|
protected _visible: boolean;
|
|
18
18
|
get visible(): boolean;
|
|
19
19
|
protected _position: 'start' | 'middle' | 'end';
|
|
20
|
-
get position(): "
|
|
20
|
+
get position(): "start" | "end" | "middle";
|
|
21
21
|
protected _legendData: CompilableData;
|
|
22
22
|
getLegendData(): any;
|
|
23
23
|
private _preSelectedData;
|
|
@@ -21,6 +21,6 @@ export declare function transformLegendTitleAttributes(title: ITitle): {
|
|
|
21
21
|
maxWidth?: number;
|
|
22
22
|
minWidth?: number;
|
|
23
23
|
space?: number;
|
|
24
|
-
align?: "
|
|
24
|
+
align?: "start" | "end" | "center";
|
|
25
25
|
};
|
|
26
26
|
export declare function getLayout(spec: ILegendCommonSpec): "vertical" | "horizontal";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
2
|
import type { StringOrNumber } from '../typings/common';
|
|
3
|
-
import type { IOrientType,
|
|
3
|
+
import type { IOrientType, 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';
|
|
@@ -52,12 +52,11 @@ export interface ILayoutItem {
|
|
|
52
52
|
layoutBindRegionID: number | number[];
|
|
53
53
|
layoutOrient: IOrientType;
|
|
54
54
|
autoIndent: boolean;
|
|
55
|
+
alignSelf?: 'start' | 'end' | 'middle';
|
|
55
56
|
layoutPaddingLeft: number;
|
|
56
57
|
layoutPaddingTop: number;
|
|
57
58
|
layoutPaddingRight: number;
|
|
58
59
|
layoutPaddingBottom: number;
|
|
59
|
-
indent: IPadding;
|
|
60
|
-
layoutExcludeIndent: IRect;
|
|
61
60
|
layoutOffsetX: number;
|
|
62
61
|
layoutOffsetY: number;
|
|
63
62
|
layoutLevel: number;
|
|
@@ -87,6 +86,7 @@ export interface ILayoutItem {
|
|
|
87
86
|
export interface ILayoutItemSpec {
|
|
88
87
|
layoutType?: ILayoutType;
|
|
89
88
|
layoutLevel?: number;
|
|
89
|
+
alignSelf?: 'start' | 'end' | 'middle';
|
|
90
90
|
orient?: IOrientType;
|
|
91
91
|
padding?: ILayoutPaddingSpec;
|
|
92
92
|
indent?: ILayoutPaddingSpec;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ILayoutModel } from './../model/interface';
|
|
2
|
-
import type {
|
|
2
|
+
import type { 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';
|
|
6
|
-
import type { ILayoutPoint, ILayoutRect } from '../typings/layout';
|
|
6
|
+
import type { ILayoutAlignSelf, ILayoutPoint, ILayoutRect } from '../typings/layout';
|
|
7
7
|
export declare class LayoutItem implements ILayoutItem {
|
|
8
8
|
protected _spec: ILayoutItemSpec;
|
|
9
9
|
getSpec(): ILayoutItemSpec;
|
|
@@ -39,14 +39,11 @@ 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;
|
|
46
42
|
layoutOffsetX: ILayoutItem['layoutOffsetX'];
|
|
47
43
|
layoutOffsetY: ILayoutItem['layoutOffsetY'];
|
|
48
44
|
layoutLevel: ILayoutItem['layoutLevel'];
|
|
49
45
|
chartLayoutRect: ILayoutRect;
|
|
46
|
+
alignSelf: ILayoutAlignSelf;
|
|
50
47
|
protected _model: ILayoutModel;
|
|
51
48
|
get model(): ILayoutModel;
|
|
52
49
|
get type(): string;
|
|
@@ -89,8 +89,6 @@ 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;
|
|
94
92
|
getLastComputeOutBounds: () => IBoundsLike;
|
|
95
93
|
getBoundsInRect: (rect: ILayoutRect, fullRect: ILayoutRect) => IBoundsLike;
|
|
96
94
|
afterSetLayoutStartPoint: (pos: ILayoutPoint) => void;
|
|
@@ -23,14 +23,6 @@ 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
|
-
};
|
|
34
26
|
getLayoutStartPoint(): IPoint;
|
|
35
27
|
setLayoutStartPosition(pos: Partial<IPoint>): any;
|
|
36
28
|
getLayoutRect(): ILayoutRect;
|