@visactor/vchart-types 1.7.3 → 1.7.4
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/component/label/label.d.ts +2 -1
- package/types/component/label/util.d.ts +1 -8
- package/types/constant/index.d.ts +2 -1
- package/types/event/events/index.d.ts +1 -0
- package/types/event/index.d.ts +2 -0
- package/types/index.d.ts +1 -0
- package/types/region/interface.d.ts +1 -0
- package/types/region/region.d.ts +3 -0
|
@@ -26,11 +26,12 @@ export declare class Label<T extends ILabelSpec = ILabelSpec> extends BaseLabelC
|
|
|
26
26
|
name: string;
|
|
27
27
|
layoutZIndex: number;
|
|
28
28
|
protected _labelInfoMap: Map<IRegion, ILabelInfo[]>;
|
|
29
|
-
protected _labelComponentMap: Map<IComponentMark, ILabelInfo | ILabelInfo[]>;
|
|
29
|
+
protected _labelComponentMap: Map<IComponentMark, () => ILabelInfo | ILabelInfo[]>;
|
|
30
30
|
protected _layoutRule: 'series' | 'region';
|
|
31
31
|
constructor(spec: T, options: IComponentOption);
|
|
32
32
|
static createComponent(spec: any, options: IComponentOption): Label<any>[];
|
|
33
33
|
init(option: IModelInitOption): void;
|
|
34
|
+
reInit(theme?: any): void;
|
|
34
35
|
initEvent(): void;
|
|
35
36
|
protected _delegateLabelEvent(component: IGroup): void;
|
|
36
37
|
protected _initTextMark(): void;
|
|
@@ -11,15 +11,8 @@ export declare const labelRuleMap: {
|
|
|
11
11
|
stackLabel: typeof stackLabel;
|
|
12
12
|
line: typeof LineLabel;
|
|
13
13
|
area: typeof LineLabel;
|
|
14
|
+
rect3d: typeof barLabel;
|
|
14
15
|
};
|
|
15
|
-
export declare enum LabelRule {
|
|
16
|
-
rect = "rect",
|
|
17
|
-
symbol = "symbol",
|
|
18
|
-
arc = "arc",
|
|
19
|
-
point = "point",
|
|
20
|
-
stackLabel = "stackLabel",
|
|
21
|
-
line = "line"
|
|
22
|
-
}
|
|
23
16
|
export declare function textAttribute(labelInfo: ILabelInfo, datum: Datum, formatMethod?: ILabelSpec['formatMethod'], formatter?: ILabelSpec['formatter']): any;
|
|
24
17
|
export declare function symbolLabel(labelInfo: ILabelInfo): {
|
|
25
18
|
position: string | ((datum: Datum) => any);
|
package/types/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface IRegion extends ILayoutModel {
|
|
|
28
28
|
getSeriesInDataName: (dataName: string) => ISeries[];
|
|
29
29
|
getMarks: () => IMark[];
|
|
30
30
|
getGroupMark: () => IGroupMark;
|
|
31
|
+
getInteractionMark: () => IGroupMark;
|
|
31
32
|
}
|
|
32
33
|
export type ISeriesFilter = {
|
|
33
34
|
name?: string;
|
package/types/region/region.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutM
|
|
|
24
24
|
setMaxHeight(value: number): void;
|
|
25
25
|
protected _groupMark: IGroupMark;
|
|
26
26
|
getGroupMark(): IGroupMark;
|
|
27
|
+
protected _interactionMark: IGroupMark;
|
|
28
|
+
getInteractionMark(): IGroupMark;
|
|
27
29
|
getStackInverse(): boolean;
|
|
28
30
|
protected _backgroundMark?: IRectMark;
|
|
29
31
|
protected _foregroundMark?: IRectMark;
|
|
@@ -32,6 +34,7 @@ export declare class Region<T extends IRegionSpec = IRegionSpec> extends LayoutM
|
|
|
32
34
|
protected _getClipDefaultValue(): boolean;
|
|
33
35
|
_initTheme(): void;
|
|
34
36
|
created(): void;
|
|
37
|
+
private _createGroupMark;
|
|
35
38
|
init(option: any): void;
|
|
36
39
|
initMark(): void;
|
|
37
40
|
protected _initBackgroundMarkStyle(): void;
|