mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-24 21:19:37 +00:00
feat: support vscode tasks for exporting pdf, svg, and png (#488)
* feat: support vscode tasks for exporting pdf, svg, and png * fix: parse errors * dev: update fill, gap arguments * fix: merged props
This commit is contained in:
parent
60f3200088
commit
140299f0ce
11 changed files with 609 additions and 50 deletions
|
|
@ -135,12 +135,14 @@ mod polymorphic {
|
|||
use super::prelude::*;
|
||||
use super::*;
|
||||
|
||||
#[derive(Default, Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub enum PageSelection {
|
||||
#[default]
|
||||
First,
|
||||
Merged,
|
||||
Merged {
|
||||
gap: Option<String>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
@ -152,6 +154,8 @@ mod polymorphic {
|
|||
page: PageSelection,
|
||||
},
|
||||
Png {
|
||||
ppi: Option<f64>,
|
||||
fill: Option<String>,
|
||||
page: PageSelection,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue