fix(plot): match PDF output to viewport

Refs #618
This commit is contained in:
Hakan Seven 2026-08-01 20:05:38 +03:00
commit 6c62daf260
6 changed files with 140 additions and 88 deletions

View file

@ -99,18 +99,13 @@ pub struct PlotDialogState {
pub printer: Option<String>,
/// Output goes to a PDF file instead of a printer.
pub to_file: bool,
#[serde(skip)]
pub paper: String,
#[serde(skip)]
pub orientation: String,
pub upside_down: bool,
pub copies: String,
pub area: String,
#[serde(skip)]
pub center: bool,
#[serde(skip)]
pub offset_x: String,
#[serde(skip)]
pub offset_y: String,
pub scale: String,
#[serde(default = "legacy_fit_to_paper_default")]