mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 04:36:12 +02:00
✨ Flex layout modifiers wasm implementation
* ✨ Flex layout modifiers wasm implementation * ✨ Flex auto modifiers propagation
This commit is contained in:
parent
fa9d8a9b15
commit
fa0da3a695
13 changed files with 1400 additions and 219 deletions
15
render-wasm/src/shapes/modifiers/grid_layout.rs
Normal file
15
render-wasm/src/shapes/modifiers/grid_layout.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use crate::math::Bounds;
|
||||
use crate::shapes::{GridData, LayoutData, Modifier, Shape};
|
||||
use std::collections::{HashMap, VecDeque};
|
||||
use uuid::Uuid;
|
||||
|
||||
pub fn reflow_grid_layout(
|
||||
_shape: &Shape,
|
||||
_layout_data: &LayoutData,
|
||||
_grid_data: &GridData,
|
||||
_shapes: &HashMap<Uuid, Shape>,
|
||||
_bounds: &HashMap<Uuid, Bounds>,
|
||||
) -> VecDeque<Modifier> {
|
||||
// TODO
|
||||
VecDeque::new()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue