Jacky Zhao
2025-03-13 1efe2e20a4fb2f47625c4a22c9ad87f7830eabf3
fix(graph): avoid keeping stroke in gfx
1 files modified
5 ■■■■ changed files
quartz/components/scripts/graph.inline.ts 5 ●●●● patch | view | raw | blame | history
quartz/components/scripts/graph.inline.ts
@@ -400,7 +400,6 @@
    })
      .circle(0, 0, nodeRadius(n))
      .fill({ color: isTagNode ? computedStyleMap["--light"] : color(n) })
      .stroke({ width: isTagNode ? 2 : 0, color: color(n) })
      .on("pointerover", (e) => {
        updateHoverInfo(e.target.label)
        oldLabelOpacity = label.alpha
@@ -416,6 +415,10 @@
        }
      })
    if (isTagNode) {
      gfx.stroke({ width: 2, color: computedStyleMap["--tertiary"] })
    }
    nodesContainer.addChild(gfx)
    labelsContainer.addChild(label)