🐛 Fix focus mode for wasm render

This commit is contained in:
Alejandro Alonso 2025-06-10 13:32:33 +02:00
parent 01311225c7
commit 1c7aea4b84
5 changed files with 145 additions and 5 deletions

View file

@ -1,5 +1,5 @@
use std::collections::{hash_map::Entry, HashMap};
use std::iter;
use std::{iter, vec};
use skia_safe as skia;
@ -135,6 +135,14 @@ impl<'a> State<'a> {
Ok(())
}
pub fn clear_focus_mode(&mut self) {
self.render_state.clear_focus_mode();
}
pub fn set_focus_mode(&mut self, shapes: Vec<Uuid>) {
self.render_state.set_focus_mode(shapes);
}
pub fn init_shapes_pool(&mut self, capacity: usize) {
self.shapes_pool.initialize(capacity);
}