viz: add font-weight to OffscreenCanvas config (#12390)

This commit is contained in:
qazal
2025-10-01 08:08:47 +03:00
committed by GitHub
parent 57ad46c6e4
commit 714500edfd
+1 -1
View File
@@ -2,7 +2,7 @@ const NODE_PADDING = 10;
const LINE_HEIGHT = 14;
const canvas = new OffscreenCanvas(0, 0);
const ctx = canvas.getContext("2d");
ctx.font = `${LINE_HEIGHT}px sans-serif`;
ctx.font = `350 ${LINE_HEIGHT}px sans-serif`;
onmessage = (e) => {
const { graph, additions } = e.data;