mirror of
https://github.com/penpot/penpot.git
synced 2025-07-12 04:37:17 +02:00
🐛 Fix focus mode for wasm render
This commit is contained in:
parent
01311225c7
commit
1c7aea4b84
5 changed files with 145 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue