in src/components/graph-view-v2.js [1793:1827]
renderGraphControls() {
const {
showGraphControls,
minZoom,
maxZoom,
allowMultiselect,
} = this.props;
const { viewTransform } = this.state;
if (!showGraphControls || !this.graphControlsWrapper) {
return;
}
const containerId = 'graph-control';
let root = this.roots[containerId];
if (!root) {
root = createRoot(this.graphControlsWrapper, {
identifierPrefix: containerId,
});
this.roots[containerId] = root;
}
root.render(
<GraphControls
minZoom={minZoom}
maxZoom={maxZoom}
zoomLevel={viewTransform ? viewTransform.k : 1}
zoomToFit={this.handleZoomToFit}
modifyZoom={this.modifyZoom}
allowMultiselect={allowMultiselect}
/>
);
}