mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
refactor: clean code & fix suffix computation & combine export actors (#263)
* dev: use bail! macro * dev: remove redundant arg structures as we have inlay hints * dev: unify actor namings * dev: unify actor namings (cont) * fix: suffix computation * dev: add EditorActor::new * dev: unify index file flavors * dev: combine export actors * dev: small tweaks * dev: mimic try blocks * dev: accumulate export requests * dev: remove unnecessary Option * dev: unify serde renames * dev: remove unnecessary Option * dev: small tweaks
This commit is contained in:
parent
d05c5012ff
commit
94a0a1b23a
21 changed files with 663 additions and 1036 deletions
|
@ -27,17 +27,15 @@ impl ExportFeature for PeriscopeExportFeature {
|
|||
|
||||
/// The arguments for periscope renderer.
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct PeriscopeArgs {
|
||||
/// The distance above the center line.
|
||||
#[serde(rename = "yAbove")]
|
||||
pub y_above: f32,
|
||||
/// The distance below the center line.
|
||||
#[serde(rename = "yBelow")]
|
||||
pub y_below: f32,
|
||||
/// The scale of the image.
|
||||
pub scale: f32,
|
||||
/// Whether to invert the color. (will become smarter in the future)
|
||||
#[serde(rename = "invertColor")]
|
||||
pub invert_color: String,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue