mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 17:34:12 +02:00
372e541a00
A wire is straight only when its two terminals are exactly in line, and qet_edit placed a symbol only by its origin, so an assistant had to guess where the terminals would land -- and usually missed by a few pixels. - place_element adds a symbol with one of its terminals in line with another symbol's, gap pixels away on the side that terminal faces, and notes when the new symbol's terminal faces the wrong way to meet it. - align_terminal moves a placed symbol across so two terminals line up. - align_elements lines up symbols' boxes (left/center/right/top/middle/ bottom), as Edit > Align does. - distribute_elements spaces symbols' origins evenly, or a pitch apart, keeping symbols on the grid on it. place_element and align_terminal need qet.terminalPosition(); on a build without it the edit stops before running, naming the missing call, and every other op still works there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015FPuYPS4T7QuEwjNu22rXD