Add artboard name to the export when exporting a single artboard (#3613)

* add artboard name to the export

* change file name to {docname}-{artboard} for more than 1 arboard

* add switch statement instead of if else
This commit is contained in:
Ayush Amawate
2026-01-11 17:58:19 +05:30
committed by GitHub
parent 1b91198b28
commit d98f19bf4a
5 changed files with 30 additions and 8 deletions

View File

@@ -85,6 +85,8 @@ pub struct ExportConfig {
pub bounds: ExportBounds,
pub transparent_background: bool,
pub size: DVec2,
pub artboard_name: Option<String>,
pub artboard_count: usize,
}
#[derive(Clone)]