mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
♻️ Refactor wasm shapes state management
This commit is contained in:
committed by
Aitor Moreno
parent
747427daa4
commit
69135ef8c7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user