Merge pull request #233 from Jud/fix/board-view-frame-to-board

fix(board-view): frame get_board_2d_view to the board, not the A4 sheet
This commit is contained in:
mixelpixx
2026-06-12 12:12:14 -04:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@@ -198,6 +198,14 @@ class BoardViewCommands:
output_svg,
"--mode-single",
"--black-and-white",
# Render the board, not the drawing sheet. kicad-cli's
# default (page-size-mode 0) plots only the area inside the
# sheet, so board geometry past the page edge is left out.
# Mode 2 sizes the output to the board's bounding box;
# --exclude-drawing-sheet drops the title block.
"--exclude-drawing-sheet",
"--page-size-mode",
"2",
]
if layers:
cmd += ["--layers", ",".join(layers)]