added SVG export feature

This commit is contained in:
francesco fantoni committed 2026-10-10 14:41:31 +02:00
1 parent 4708283382
commit 666b5d561a
10 files changed
+1274 -124

No files matched your search

+7
View File
@@ -895,6 +895,13 @@ impl OpenCADStudio {
"EXPORT" | "EXPORTPDF" => {
return Some(Task::done(Message::PlotExport));
}
// EXPORTSVG — the same direct export, but the save dialog
// proposes the SVG device's defaults (`stem.svg`).
"EXPORTSVG" => {
self.plot_dialog.to_file = true;
self.plot_dialog.file_svg = true;
return Some(Task::done(Message::PlotExport));
}
// PLOTSTYLE — load or clear CTB/STB plot style table
cmd if cmd == "PLOTSTYLE" || cmd.starts_with("PLOTSTYLE ") => {
let sub = cmd
+1
View File
@@ -475,6 +475,7 @@ inventory::submit!(crate::command::CommandRegistration {
// Standard aliases for existing commands.
"BMAKE",
"EXPORTPDF",
"EXPORTSVG",
"PRINTALL",
"DDIM",
// Inquiry: list the whole drawing database.