1pub fn compute() {
2 let mut taffy = taffy::Taffy::new();
3 let node0 = taffy
4 .new_node(
5 taffy::style::Style {
6 size: taffy::geometry::Size {
7 width: taffy::style::Dimension::Points(10f32),
8 height: taffy::style::Dimension::Points(10f32),
9 ..Default::default()
10 },
11 ..Default::default()
12 },
13 &[],
14 )
15 .unwrap();
16 let node = taffy
17 .new_node(
18 taffy::style::Style {
19 align_items: taffy::style::AlignItems::FlexStart,
20 size: taffy::geometry::Size {
21 width: taffy::style::Dimension::Points(100f32),
22 height: taffy::style::Dimension::Points(100f32),
23 ..Default::default()
24 },
25 ..Default::default()
26 },
27 &[node0],
28 )
29 .unwrap();
30 taffy.compute_layout(node, taffy::geometry::Size::undefined()).unwrap();
31}