igationOnArrowRight: false, focused: census.focused, getParent: node => { const parent = parentMap[node.id]; return parent === report ? null : parent; }, getChildren: node => node.children || [], isExpanded: node => census.expanded.has(node.id), onExpand, onCollapse, onFocus, renderItem: (item, depth, focused, arrow, expanded) => new CensusTreeItem({ onViewSourceInDebugger, item, depth, focused, arrow, expanded, getPercentBytes, getPercentCount, diffing, inverted: census.display.inverted, onViewIndividuals, }), getRoots: () => report.children || [], getKey: node => node.id, itemHeight: TREE_ROW_HEIGHT, }); } } module.exports = Census; PK