@statisticsfinland/pxvisualizer 1.0.6-t.0 → 1.0.7-d.0
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/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +19 -19
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/core/conversion/dataIndexer.d.ts +30 -0
- package/dist/types/core/conversion/viewUtils.d.ts +2 -2
- package/dist/types/core/types/view.d.ts +0 -3
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IQueryVisualizationResponse } from "../types";
|
|
2
|
+
import { IVariableMeta, IVariableValueMeta, TMultiLanguageString } from "../types/queryVisualizationResponse";
|
|
3
|
+
import { TVariableSelections } from "../types/variableSelections";
|
|
4
|
+
import { IDataCell, IDataSeries } from "../types/view";
|
|
5
|
+
export declare class DataIndexer {
|
|
6
|
+
dataIndex: number;
|
|
7
|
+
dataLength: number;
|
|
8
|
+
private responseObj;
|
|
9
|
+
private coordinates;
|
|
10
|
+
private lastIndices;
|
|
11
|
+
private indices;
|
|
12
|
+
private variableOrder;
|
|
13
|
+
private lastCoordinateIndex;
|
|
14
|
+
private reverseCumulativeProducts;
|
|
15
|
+
private contentVariableIndex;
|
|
16
|
+
private timeVariableIndex;
|
|
17
|
+
private selectedViewMeta;
|
|
18
|
+
constructor(responseObj: IQueryVisualizationResponse, selectedValueCodes: TVariableSelections);
|
|
19
|
+
getViewSeries(): IDataSeries[];
|
|
20
|
+
generateViewSeries(): IDataSeries[];
|
|
21
|
+
next(): boolean;
|
|
22
|
+
createDataCell(): IDataCell;
|
|
23
|
+
getRowNames(): TMultiLanguageString[];
|
|
24
|
+
getRowNameGroup(viewSeries: IDataSeries[], rowNames: TMultiLanguageString[]): IDataSeries;
|
|
25
|
+
getTargetMap(responseObj: IQueryVisualizationResponse, selectedValueCodes: TVariableSelections): IVariableMeta[];
|
|
26
|
+
getVariableOrder(completeMap: IVariableMeta[], targetMap: IVariableMeta[]): number[];
|
|
27
|
+
generateRCP(variableSizes: number[]): number[];
|
|
28
|
+
setCurrentIndex(): void;
|
|
29
|
+
getCurrentTimeValue(): IVariableValueMeta | undefined;
|
|
30
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IQueryVisualizationResponse } from "../types";
|
|
2
2
|
import { TMultiLanguageString } from "../types/queryVisualizationResponse";
|
|
3
|
-
import { IDataSeries,
|
|
3
|
+
import { IDataSeries, View } from "../types/view";
|
|
4
4
|
import { TVariableSelections } from "../types/variableSelections";
|
|
5
5
|
export declare function convertPxGrafResponseToView(responseObj: IQueryVisualizationResponse, selectedValueCodes: TVariableSelections): View;
|
|
6
6
|
export declare function convertToRelative(input: View): View;
|
|
7
|
-
export declare function buildSeries(responseObj: IQueryVisualizationResponse, selectedValueCodes:
|
|
7
|
+
export declare function buildSeries(responseObj: IQueryVisualizationResponse, selectedValueCodes: TVariableSelections): {
|
|
8
8
|
columnNameGroups: TMultiLanguageString[][];
|
|
9
9
|
series: IDataSeries[];
|
|
10
10
|
};
|