@visactor/vchart-types 1.11.2 → 1.11.3

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.
@@ -58,7 +58,6 @@ export declare abstract class DataFilterBaseComponent<T extends IDataFilterCompo
58
58
  x: number;
59
59
  y: number;
60
60
  }): void;
61
- protected abstract _getComponentAttrs(): any;
62
61
  protected abstract _createOrUpdateComponent(): void;
63
62
  protected abstract _computeWidth(): number;
64
63
  protected abstract _computeHeight(): number;
@@ -47,7 +47,7 @@ export declare class DataZoom<T extends IDataZoomSpec = IDataZoomSpec> extends D
47
47
  protected _createOrUpdateComponent(): void;
48
48
  protected _handleChange(start: number, end: number, updateComponent?: boolean, tag?: string): void;
49
49
  protected _handleDataCollectionChange(): void;
50
- protected _getComponentAttrs(): {
50
+ protected _getComponentAttrs(isNeedPreview: boolean): {
51
51
  backgroundStyle: IRectGraphicAttribute;
52
52
  startHandlerStyle: ISymbolGraphicAttribute;
53
53
  middleHandlerStyle: {
@@ -37,6 +37,7 @@ export interface IDataZoomStyle {
37
37
  };
38
38
  }
39
39
  export interface IDataZoomSpec extends IDataZoomStyle, IDataFilterComponentSpec {
40
+ showBackgroundChart?: boolean;
40
41
  filterMode?: IFilterMode;
41
42
  valueField?: string;
42
43
  startText?: {
@@ -10,4 +10,5 @@ export interface IContinuousLegendFilterOption {
10
10
  selected: () => StringOrNumber[];
11
11
  field: () => string | undefined;
12
12
  data: () => StringOrNumber[];
13
+ isHierarchyData?: () => boolean;
13
14
  }
package/types/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { VChart } from './vchart-all';
2
2
  export default VChart;
3
3
  export * from './core';
4
4
  export * from './chart';
5
+ export * from './chart/base';
5
6
  export * from './series';
6
7
  export * from './mark';
7
8
  export * from './component';
@@ -52,7 +52,6 @@ export declare class BarSeries<T extends IBarSeriesSpec = IBarSeriesSpec> extend
52
52
  protected _getBarBackgroundYStart: (scale: IBaseScale) => number;
53
53
  protected _getBarBackgroundYEnd: (scale: IBaseScale) => number;
54
54
  protected _initBandBarBackgroundMarkStyle(): void;
55
- protected _initLinearBarBackgroundMarkStyle(): void;
56
55
  initAnimation(): void;
57
56
  protected _getBarWidth(axisHelper: IAxisHelper, scaleDepth?: number): number;
58
57
  protected _getPosition(direction: DirectionType, datum: Datum, scaleDepth?: number, mark?: SeriesMarkNameEnum): number;
@@ -45,6 +45,7 @@ export interface ISeries extends IModel {
45
45
  reFilterViewData: () => void;
46
46
  reTransformViewData: () => void;
47
47
  fillData: () => void;
48
+ isHierarchyData?: () => boolean;
48
49
  getRegion: () => IRegion;
49
50
  initMark: () => void;
50
51
  getMarks: () => IMark[];
@@ -59,5 +59,6 @@ export declare class TreemapSeries extends CartesianSeries<any> {
59
59
  protected disableMarkAnimation(): void;
60
60
  getDefaultShapeType(): string;
61
61
  getActiveMarks(): IMark[];
62
+ isHierarchyData: () => boolean;
62
63
  }
63
64
  export declare const registerTreemapSeries: () => void;
@@ -1,3 +1,5 @@
1
1
  export declare const findHierarchyNode: <T>(hierarchyData: T[], key: string, keyField?: string, childrenField?: string) => T;
2
2
  export declare const findHierarchyNodeParent: <T>(hierarchyData: T[], key: string, keyField?: string, childrenField?: string) => T;
3
3
  export declare const findHierarchyPath: <T>(hierarchyData: T[], key: string, keyField?: string, childrenField?: string) => string[];
4
+ export declare function isHierarchyItem(item: Object, valueField?: string, childrenField?: string): boolean;
5
+ export declare function filterHierarchyDataByRange(data: any[], minValue: number, maxValue: number, valueField?: string, childrenField?: string): any[];