@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.
@@ -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);
@@ -45,7 +45,8 @@ export declare enum LayoutZIndex {
45
45
  Title = 500,
46
46
  Label = 500,
47
47
  Brush = 500,
48
- CustomMark = 500
48
+ CustomMark = 500,
49
+ Interaction = 700
49
50
  }
50
51
  export declare enum LayoutLevel {
51
52
  Indicator = 10,
@@ -1,4 +1,5 @@
1
1
  import { DimensionHoverEvent, DimensionClickEvent } from './dimension';
2
+ export * from './dimension';
2
3
  export declare const ComposedEventMapper: {
3
4
  dimensionHover: typeof DimensionHoverEvent;
4
5
  dimensionClick: typeof DimensionClickEvent;
@@ -0,0 +1,2 @@
1
+ export * from './event';
2
+ export * from './events';
package/types/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './mark';
7
7
  export * from './component';
8
8
  export * from './layout';
9
9
  export * from './env';
10
+ export * from './event';
@@ -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;
@@ -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;