refactor: General performance/style improvements (#262)

This commit is contained in:
Adam Brangenberg authored and GitHub committed 2022-12-29 10:43:41 -05:00
1 parent dc43737896
commit 614a6222a1
10 files changed
+84 -66

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ async function drawGraph(baseUrl, isHome, pathColors, graphConfig) {
.append("svg")
.attr("width", width)
.attr("height", height)
.attr('viewBox', [-width / 2 * 1 / scale, -height / 2 * 1 / scale, width * 1 / scale, height * 1 / scale])
.attr('viewBox', [-width / 2 / scale, -height / 2 / scale, width / scale, height / scale])
if (enableLegend) {
const legend = [{ Current: "var(--g-node-active)" }, { Note: "var(--g-node)" }, ...pathColors]