mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 14:57:12 +02:00
♻️ Refactor wasm shapes state management
This commit is contained in:
parent
747427daa4
commit
69135ef8c7
10 changed files with 200 additions and 171 deletions
|
@ -44,6 +44,8 @@ use crate::math;
|
|||
use crate::math::{Bounds, Matrix, Point};
|
||||
use indexmap::IndexSet;
|
||||
|
||||
use crate::state::ShapesPool;
|
||||
|
||||
const MIN_VISIBLE_SIZE: f32 = 2.0;
|
||||
const ANTIALIAS_THRESHOLD: f32 = 15.0;
|
||||
|
||||
|
@ -781,7 +783,7 @@ impl Shape {
|
|||
|
||||
pub fn all_children_with_self(
|
||||
&self,
|
||||
shapes: &HashMap<Uuid, &mut Shape>,
|
||||
shapes: &ShapesPool,
|
||||
include_hidden: bool,
|
||||
) -> IndexSet<Uuid> {
|
||||
once(self.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue