@visactor/vchart-types 1.12.2-alpha.0 → 1.12.2-alpha.1

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.
@@ -2,4 +2,3 @@ export declare function breakData(data: number[], points: number[]): {
2
2
  domain: [number, number][];
3
3
  scope: [number, number][];
4
4
  };
5
- export declare function mergeAndSortRanges(ranges: [number, number][]): [number, number][];
@@ -41,5 +41,6 @@ export declare class CirclePackingSeries<T extends ICirclePackingSeriesSpec = IC
41
41
  onLayoutEnd(ctx: any): void;
42
42
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
43
43
  getActiveMarks(): IMark[];
44
+ getMarkData(datum: Datum): any;
44
45
  }
45
46
  export declare const registerCirclePackingSeries: () => void;
@@ -47,6 +47,7 @@ export interface ISeries extends IModel {
47
47
  reTransformViewData: () => void;
48
48
  fillData: () => void;
49
49
  isHierarchyData?: () => boolean;
50
+ getMarkData?: (d: Datum) => Datum;
50
51
  getRegion: () => IRegion;
51
52
  initMark: () => void;
52
53
  getMarks: () => IMark[];
@@ -77,5 +77,6 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
77
77
  getDefaultShapeType(): string;
78
78
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
79
79
  getActiveMarks(): IMark[];
80
+ getMarkData(datum: Datum): any;
80
81
  }
81
82
  export declare const registerSankeySeries: () => void;
@@ -56,5 +56,6 @@ export declare class SunburstSeries extends PolarSeries<any> {
56
56
  getStackValueField(): string;
57
57
  protected _noAnimationDataKey(datum: Datum, index: number): unknown | undefined;
58
58
  getActiveMarks(): IMark[];
59
+ getMarkData(datum: Datum): any;
59
60
  }
60
61
  export declare const registerSunBurstSeries: () => void;
@@ -1,5 +1,10 @@
1
+ import { Datum } from '../../typings';
1
2
  import { BaseSeriesTooltipHelper } from '../base/tooltip-helper';
3
+ import type { TreemapSeries } from './treemap';
2
4
  export declare class TreemapTooltipHelper extends BaseSeriesTooltipHelper {
5
+ series: TreemapSeries;
3
6
  get defaultShapeType(): string;
4
- markTooltipKeyCallback: (datum: any) => any;
7
+ markTooltipKeyCallback: (datum: Datum) => any;
8
+ markTooltipValueCallback: (datum: Datum) => string | undefined;
9
+ dimensionTooltipTitleCallback: (datum: Datum) => string | undefined;
5
10
  }
@@ -1,4 +1,5 @@
1
1
  import type { IMark } from '../../mark/interface';
2
+ import type { Datum } from '../../typings';
2
3
  import { CartesianSeries } from '../cartesian/cartesian';
3
4
  import type { SeriesMarkMap } from '../interface';
4
5
  import { SeriesTypeEnum } from '../interface/type';
@@ -33,7 +34,11 @@ export declare class TreemapSeries extends CartesianSeries<any> {
33
34
  compile(): void;
34
35
  protected _runTreemapTransform(render?: boolean): void;
35
36
  protected _addDataIndexAndKey(): void;
36
- getRawDataStatisticsByField(field: string, isNumeric?: boolean): any;
37
+ getRawDataStatisticsByField(field: string, isNumeric?: boolean): {
38
+ values?: any[];
39
+ min?: number;
40
+ max?: number;
41
+ };
37
42
  protected _createHierarchyDataStatistics(dataName: string, rawData: DataView[]): DataView;
38
43
  getStatisticFields(): {
39
44
  key: string;
@@ -60,5 +65,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
60
65
  getDefaultShapeType(): string;
61
66
  getActiveMarks(): IMark[];
62
67
  isHierarchyData: () => boolean;
68
+ getMarkData(datum: Datum): any;
63
69
  }
64
70
  export declare const registerTreemapSeries: () => void;