Instead of manually calculating slot Y positions with a formula that varies across LiteGraph versions, use getConnectionPos() which returns the exact coordinates LiteGraph uses for drawing slot connectors. This guarantees perfect alignment between toggles and their input slots. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>