mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
viz: add font-weight to OffscreenCanvas config (#12390)
This commit is contained in:
parent
57ad46c6e4
commit
714500edfd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue