Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(project): add track field to mask and text segments

Richie McIlroy525d5d1dd124
diff --git a/crates/project/src/configuration.rs b/crates/project/src/configuration.rs
index db1a4ed40..612bb691f 100644
--- a/crates/project/src/configuration.rs
+++ b/crates/project/src/configuration.rs
@@ -669,6 +669,8 @@ pub struct MaskKeyframes {
pub struct MaskSegment {
pub start: f64,
pub end: f64,
+ #[serde(default)]
+ pub track: u32,
#[serde(default = "MaskSegment::default_enabled")]
pub enabled: bool,
pub mask_type: MaskKind,
@@ -707,6 +709,8 @@ impl MaskSegment {
pub struct TextSegment {
pub start: f64,
pub end: f64,
+ #[serde(default)]
+ pub track: u32,
#[serde(default = "TextSegment::default_enabled")]
pub enabled: bool,
#[serde(default = "TextSegment::default_content")]