Started to try and rebrand this?

This commit is contained in:
2026-10-14 18:13:12 -07:00
parent d75a21deef
commit 79f21bf6f3
28 changed files with 506 additions and 25 deletions
+2 -1
View File
@@ -509,7 +509,8 @@ pub fn export_comp(project: &Project, comp: ItemId, opts: &ExportOptions, read:
pub fn to_dotlottie(res: &ExportResult, id: &str) -> Vec<u8> {
let id: String = id.chars().map(|c| if c.is_ascii_alphanumeric() || c == '_' || c == '-' { c } else { '_' }).collect();
let id = if id.is_empty() { "animation".to_string() } else { id };
let manifest = json!({"version": "1", "generator": "EffectCraft", "author": "", "animations": [{"id": id, "speed": 1, "loop": true}]});
const GENERATOR: &str = "EffectCraft";
let manifest = json!({"version": "1", "generator": GENERATOR, "author": "", "animations": [{"id": id, "speed": 1, "loop": true}]});
crate::zip::store(&[
("manifest.json".into(), serde_json::to_vec(&manifest).unwrap_or_default()),
(format!("animations/{id}.json"), serde_json::to_vec(&res.json).unwrap_or_default()),