Compare commits

...

2 Commits

Author SHA1 Message Date
Aaron Pham
8de754138d
Merge 52e0312548f1543c3ce27bcbbdca45870f32c0c4 into 7be47742a6dc86f22d148ca9d304f7a9eea318cf 2025-01-31 06:46:48 -05:00
Aaron Pham
52e0312548
fix(graph): set container as renderGroup to avoid redrawing multiple times
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2025-01-23 06:23:06 -05:00

View File

@ -363,9 +363,9 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
const stage = app.stage const stage = app.stage
stage.interactive = false stage.interactive = false
const labelsContainer = new Container<Text>({ zIndex: 3 }) const labelsContainer = new Container<Text>({ zIndex: 3, isRenderGroup: true })
const nodesContainer = new Container<Graphics>({ zIndex: 2 }) const nodesContainer = new Container<Graphics>({ zIndex: 2, isRenderGroup: true })
const linkContainer = new Container<Graphics>({ zIndex: 1 }) const linkContainer = new Container<Graphics>({ zIndex: 1, isRenderGroup: true })
stage.addChild(nodesContainer, labelsContainer, linkContainer) stage.addChild(nodesContainer, labelsContainer, linkContainer)
for (const n of graphData.nodes) { for (const n of graphData.nodes) {