refactor(engine): move error, services, document state, event, fonts and Session methods out of lib.rs

This commit is contained in:
aiongg
2026-10-26 21:49:11 +00:00
parent d76cfc7c45
commit 2b4fcdd3db
8 changed files with 1180 additions and 1154 deletions
+12
View File
@@ -156,6 +156,7 @@ mod enabled;
mod params;
mod schema;
use super::*;
pub use enabled::always;
pub(crate) use enabled::{has_comp, has_keys, has_layers, has_project_selection, not_yet, not_yet_run};
pub use params::match_path_of;
@@ -280,3 +281,14 @@ pub fn find(id: &str) -> Option<&'static CommandSpec> {
});
index.get(id).map(|&i| &command_specs()[i])
}
/// Font families available to text layers (bundled + scanned system fonts).
/// Text animation presets: (id, name), for menus.
pub fn text_presets() -> Vec<(String, String)> {
commands::text_preset_list()
}
/// Built-in animation presets (Effects & Presets ▸ * Animation Presets): (id, name, category).
pub fn animation_presets() -> Vec<(String, String, String)> {
commands::builtin_preset_list()
}