#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub struct GlobalAnimationManager;
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
impl GlobalAnimationManager {
pub fn new() -> Self {
Self
}
pub fn start(&self) {
web_sys::console::log_1(&"🎬 Global animation manager started (simplified)".into());
}
pub fn stop(&self) {
web_sys::console::log_1(&"🛑 Global animation manager stopped".into());
}
pub fn register(&self, _name: String, _callback: Box<dyn Fn()>) {
web_sys::console::log_1(&"✅ Animation callback registered (simplified)".into());
}
pub fn unregister(&self, _name: &str) {
web_sys::console::log_1(&"🛑 Animation callback unregistered".into());
}
}
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
static GLOBAL_MANAGER: GlobalAnimationManager = GlobalAnimationManager;
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub fn global_animation_manager() -> &'static GlobalAnimationManager {
&GLOBAL_MANAGER
}
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub fn init_global_animation_manager() {
web_sys::console::log_1(&"🎬 Initializing global animation manager".into());
global_animation_manager().start();
}
#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub fn create_animation_callback(
_element: web_sys::HtmlElement,
_state: crate::state::AnimationDataStore,
_actions: Vec<crate::builder::AnimationAction>,
_f: impl Fn(&crate::context::AnimationContext, &mut crate::state::AnimationDataStore) + 'static,
) -> Box<dyn Fn()> {
Box::new(|| {
web_sys::console::log_1(&"Animation callback executed (simplified)".into());
})
}