forked from 1b-agent/opencadstudio-upstream
added SVG export feature
This commit is contained in:
1 parent
4708283382
commit
666b5d561a
10 files changed
+1274
-124
No files matched your search
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user