Function pin_plan
pub fn pin_plan(
asked: &[Asked],
room: f32,
empty: f32,
plan: &[f32],
) -> Vec<Option<f32>>Expand description
The heights to keep by hand, section by section, so that fit
shows plan in room, with empty kept under the last section.
A section set by hand takes its height from the plan, which aligns it
on what is shown. One sized by the list stays so as long as fit
gives it the plan’s height: a section the drag did not touch gets a
height of its own only if the list would otherwise move it. The last
open section and folded ones keep what they had.