This commit is contained in:
Parker TenBroeck 2026-01-09 14:20:42 -05:00
parent 8a133bf407
commit 132380e777

View file

@ -277,8 +277,6 @@ function renderNode({
}: any) {
return {
drawNode() {
// @ts-expect-error bad library
const node: vis.Node = nodes.get(id)!;
const t = getGraphTheme();
const r = Math.max(14, style?.size ?? 18);
@ -355,6 +353,8 @@ function renderNode({
// }
// }
// @ts-expect-error bad library
const node: vis.Node = nodes.get(id)!;
const physicsOff = node.physics === false;
if (physicsOff) {
drawPinIndicator(ctx, x, y, r, t.node_anchor);