in desktop/src/app/components/pool/graphs/heatmap/nodes-heatmap.component.ts [136:155]
public ngOnChanges(changes: SimpleChanges) {
if (changes.pool) {
if (ComponentUtils.recordChangedId(changes.pool)) {
this.commands.params = { poolId: this.pool && this.pool.id };
this.selectedNodeId.next(null);
if (this._svg) {
this._svg.selectAll("g.node-group").remove();
}
}
}
if (changes.nodes) {
if (this.nodes.size > maxNodes) {
log.warn(`Only supporting up to ${maxNodes} nodes for now!`);
}
this._nodes = List<Node>(this.nodes.slice(0, this.limitNode || maxNodes));
this._buildNodeMap();
this._processNewData();
}
}