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:
QuarticCat 2024-05-09 08:57:44 +08:00 committed by GitHub
parent d05c5012ff
commit 94a0a1b23a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 663 additions and 1036 deletions

View file

@ -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,
}