mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -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) {
|
}: any) {
|
||||||
return {
|
return {
|
||||||
drawNode() {
|
drawNode() {
|
||||||
// @ts-expect-error bad library
|
|
||||||
const node: vis.Node = nodes.get(id)!;
|
|
||||||
|
|
||||||
const t = getGraphTheme();
|
const t = getGraphTheme();
|
||||||
const r = Math.max(14, style?.size ?? 18);
|
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;
|
const physicsOff = node.physics === false;
|
||||||
if (physicsOff) {
|
if (physicsOff) {
|
||||||
drawPinIndicator(ctx, x, y, r, t.node_anchor);
|
drawPinIndicator(ctx, x, y, r, t.node_anchor);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue