@visactor/vtable 1.7.8-alpha.3 → 1.7.8-alpha.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.
@@ -62,27 +62,13 @@ export declare class Dataset {
62
62
  indicatorKeysIncludeCalculatedFieldDependIndicatorKeys: string[];
63
63
  customRowTree?: IHeaderTreeDefine[];
64
64
  customColTree?: IHeaderTreeDefine[];
65
- customRowTreeDimensionPaths: {
66
- dimensionKey?: string | number;
67
- value: string;
68
- indicatorKey?: string | number;
69
- isVirtual?: boolean;
70
- childKeys?: (string | number)[];
71
- }[][];
72
- customColTreeDimensionPaths: {
73
- dimensionKey?: string | number;
74
- value: string;
75
- indicatorKey?: string | number;
76
- isVirtual?: boolean;
77
- }[][];
78
65
  colHeaderTree: any[];
79
66
  rowHeaderTree: any[];
80
67
  rowHierarchyType: 'grid' | 'tree';
81
68
  indicators?: (string | IIndicator)[];
82
69
  indicatorsAsCol: boolean;
83
70
  totalRecordsTree: Record<string, Record<string, Aggregator[]>>;
84
- hasExtensionRowTree?: boolean;
85
- constructor(dataConfig: IPivotTableDataConfig | IPivotChartDataConfig | undefined, rows: string[], columns: string[], indicatorKeys: string[], indicators: (string | IIndicator)[] | undefined, indicatorsAsCol: boolean, records: any[] | Record<string, any[]> | undefined, rowHierarchyType?: 'grid' | 'tree', customColTree?: IHeaderTreeDefine[], customRowTree?: IHeaderTreeDefine[], needSplitPositiveAndNegative?: boolean, hasExtensionRowTree?: boolean);
71
+ constructor(dataConfig: IPivotTableDataConfig | IPivotChartDataConfig | undefined, rows: string[], columns: string[], indicatorKeys: string[], indicators: (string | IIndicator)[] | undefined, indicatorsAsCol: boolean, records: any[] | Record<string, any[]> | undefined, rowHierarchyType?: 'grid' | 'tree', customColTree?: IHeaderTreeDefine[], customRowTree?: IHeaderTreeDefine[], needSplitPositiveAndNegative?: boolean);
86
72
  setRecords(records: any[] | Record<string, any[]>): void;
87
73
  registerAggregator(type: string, aggregator: any): void;
88
74
  registerAggregators(): void;
@@ -105,16 +91,13 @@ export declare class Dataset {
105
91
  totalStatistics(): void;
106
92
  private ArrToTree1;
107
93
  private ArrToTree;
94
+ private TreeToArr;
108
95
  private cacheDeminsionCollectedValues;
109
96
  changeTreeNodeValue(rowKey: string[] | string, colKey: string[] | string, indicator: string, newValue: string | number): void;
110
97
  changeRecordFieldValue(fieldName: string, oldValue: string | number, value: string | number): void;
111
- _rowTreeHasChanged(): void;
112
98
  changeDataConfig(dataConfig: {
113
99
  rows: string[];
114
100
  columns: string[];
115
101
  }): void;
116
102
  addRecords(records: any[]): void;
117
- private customTreeToDimensionPathArr;
118
- private getFieldMatchColDimensionPaths;
119
- private getFieldMatchRowDimensionPaths;
120
103
  }