wip: new old arranger scenes
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-15 23:06:15 +03:00
parent 4ba88bfd6d
commit 9aeb792f7d
6 changed files with 197 additions and 176 deletions

View file

@ -69,21 +69,6 @@ pub trait HasTracks: Has<Vec<Track>> + Send + Sync {
const TRACK_SPACING: usize = 0;
}
impl<'a> ArrangerView<'a> {
pub(crate) fn tracks_with_sizes_scrolled (&'a self)
-> impl TracksSizes<'a>
{
self.arrangement
.tracks_with_sizes(
&self.arrangement.selection(),
self.is_editing.then_some(20/*FIXME*/)
)
.map_while(move|(t, track, x1, x2)|{
(self.width_mid > x2 as u16).then_some((t, track, x1, x2))
})
}
}
impl Arrangement {
/// Add multiple tracks
pub fn tracks_add (