Fix raster export scale factor (#3870)

* fix export scale factor

* export scale increment step 0.5

* fix svg to raster export on web
This commit is contained in:
Timon
2026-03-10 01:23:42 +00:00
committed by GitHub
parent f06983d072
commit 4300a885dc
3 changed files with 15 additions and 11 deletions
@@ -113,6 +113,7 @@ impl LayoutHolder for ExportDialogMessageHandler {
.unit("")
.min(0.)
.max((1_u64 << f64::MANTISSA_DIGITS) as f64)
.increment_step(0.5)
.disabled(self.file_type == FileType::Svg)
.on_update(|number_input: &NumberInput| ExportDialogMessage::ScaleFactor { factor: number_input.value.unwrap() }.into())
.min_width(200)