private updateNodes()

in src/visual.ts [817:829]


    private updateNodes(): void {
        let thePreviousNodes: ForceGraphNode[] = this.forceLayout.nodes();

        this.forceLayout.nodes(d3.values(this.data.nodes));

        this.forceLayout.nodes().forEach((node: ForceGraphNode, index: number) => {
            if (!thePreviousNodes[index]) {
                return;
            }

            this.updateNodeAttributes(node, thePreviousNodes[index]);
        });
    }