Skip to content

Commit dffd5e5

Browse files
committed
fix(graph_view): Fix font color fetch error.
1 parent 1795f3f commit dffd5e5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

assets/graph_view.txt.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,9 @@ class GraphRenderWorker
243243
this.cameraScale = 1;
244244
this.hoveredNode = -1;
245245
this.grabbedNode = -1;
246-
this.resampleColors();
246+
setTimeout(() => {
247+
this.resampleColors();
248+
}, 500)
247249

248250
this.#pixiInit();
249251

@@ -862,7 +864,9 @@ function initializeGraphEvents()
862864

863865
document.querySelector(".theme-toggle-input")?.addEventListener("change", event =>
864866
{
865-
renderWorker.resampleColors();
867+
setTimeout(() => {
868+
renderWorker.resampleColors();
869+
}, 1000)
866870
});
867871

868872
function toggleExpandedGraph()

0 commit comments

Comments
 (0)