mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-07 05:28:45 -04:00
sync
This commit is contained in:
parent
8a133bf407
commit
132380e777
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue