add base pages
This commit is contained in:
parent
c01138a81c
commit
ea69050587
22 changed files with 365 additions and 16 deletions
|
@ -23,7 +23,7 @@
|
|||
}
|
||||
|
||||
const color = (d) => {
|
||||
if (d.id === curPage) {
|
||||
if (d.id === curPage || (d.id === "/" && curPage === "")) {
|
||||
return "var(--g-node-active)"
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@
|
|||
.on("end", enableDrag ? dragended : noop);
|
||||
}
|
||||
|
||||
const height = 400
|
||||
const height = 250
|
||||
const width = document.getElementById("graph-container").offsetWidth
|
||||
|
||||
const simulation = d3.forceSimulation(data.nodes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue