Add explicit orthogonal span sizing
This commit is contained in:
1 parent
29c7881c8a
commit
f437495309
7 files changed
+108
-8
No files matched your search
@@ -308,6 +308,12 @@ impl<Rsc: UiRsc + 'static> Grow<'_, Rsc> {
|
||||
children,
|
||||
dir,
|
||||
gap: self.rng.below(3) as f32 * 4.0,
|
||||
// Derive this from an existing choice: a seed must keep growing
|
||||
// the same tree when the generator gains another configuration.
|
||||
ortho: match dir.axis {
|
||||
Axis::X => OrthoSize::Full,
|
||||
Axis::Y => OrthoSize::Children,
|
||||
},
|
||||
}
|
||||
.add(self.rsc);
|
||||
self.tree.ids.push(id.id());
|
||||
|
||||
Reference in new issue
Block a user