Plotting: honor model-space center and X/Y offsets (#751)

* plot: add bounded model-space paper placement

* plot: expose center and paper offset parameters

* ui: add model-space Plot offset controls
This commit is contained in:
cyfung1031 authored and GitHub committed 2026-10-13 04:34:04 -04:00
1 parent e71e17a8df
commit bcd6322ee9
7 files changed
+293 -16

No files matched your search

+5
View File
@@ -101,6 +101,11 @@ In the file name, characters other than letters, digits, spaces and `-_()+,` bec
- The device sets the output and resolution.
- `paper` (one of the device's papers) sets the size and margins for this plot.
- A model-space plot without `paper` uses the device's default paper and orientation.
- For Model plots, `center` defaults to `true`, preserving the existing centered output. Set
`center: false` with `offset: [x, y]` to place the plotted bounds' lower-left corner from the
printable area's lower-left origin; offsets are millimetres, default to `[0, 0]`, and are
bounded to ±100,000 mm. PDF and PNG support these controls. SVG plots keep their extents view;
an active offset is rejected rather than ignored. Layout plots do not use model offsets.
- `exportpdf` takes the same options and always writes PDF.
Model-space PDF plots don't apply the paper's margins yet. They fit the drawing inside the