Add explicit orthogonal span sizing

This commit is contained in:
iris-ai committed 2026-09-15 16:40:09 -04:00
1 parent 29c7881c8a
commit f437495309
7 files changed
+108 -8

No files matched your search

+6
View File
@@ -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());