Zoom in/out on entire SVG canvas.

This commit is contained in:
Kia Lam 2022-01-20 13:58:35 -08:00
parent 0c8c69f04a
commit 07ccce9845

View File

@ -126,7 +126,7 @@ function MeshGraph({ data }) {
.zoom()
.scaleExtent([1, 8])
.on('zoom', (event) => {
svg.selectAll('.links, .nodes').attr('transform', event.transform);
svg.attr('transform', event.transform);
});
/* Add SVG */