Add zoom to fit.

This commit is contained in:
Kia Lam
2022-02-07 09:12:49 -08:00
parent 391907c41e
commit b859c3360d
3 changed files with 37 additions and 7 deletions

View File

@@ -52,7 +52,7 @@ function MeshGraph({ showLegend, zoom }) {
}
return generateLinks(nodes, getRandomInt(1, n - 1));
};
const data = generateNodes(getRandomInt(5, 30));
const data = generateNodes(getRandomInt(250, 250));
const draw = () => {
const margin = 15;
const defaultRadius = 16;