perspectives: loading only neccessary columns

This commit is contained in:
Jan Prochazka
2022-07-01 10:24:35 +02:00
parent eadd3feba0
commit 29ccb09ba6
3 changed files with 55 additions and 12 deletions

View File

@@ -84,10 +84,10 @@ export class PerspectiveDisplay {
this.fillColumns(root.childNodes, []);
this.columnLevelCount = _max(this.columns.map(x => x.parentNodes.length)) + 1;
const collectedRows = this.collectRows(rows, root.childNodes);
console.log('COLLECTED', collectedRows);
// console.log('COLLECTED', collectedRows);
// this.mergeRows(collectedRows);
this.mergeRows(collectedRows);
console.log('MERGED', this.rows);
// console.log('MERGED', this.rows);
}
fillColumns(children: PerspectiveTreeNode[], parentNodes: PerspectiveTreeNode[]) {
@@ -126,11 +126,6 @@ export class PerspectiveDisplay {
const columnNodes = nodes.filter(x => x.isChecked && !x.isExpandable);
const treeNodes = nodes.filter(x => x.isChecked && x.isExpandable);
console.log(
'columnNodes',
columnNodes.map(x => x.fieldName)
);
const columnIndexes = columnNodes.map(node => this.findColumnIndexFromNode(node));
// const nodeStartIndexes = new WeakMap();