zoom with offset x

This commit is contained in:
Martin Kavík 2024-06-12 00:10:08 +02:00
parent 60d4231575
commit e934ac031d
4 changed files with 21 additions and 4 deletions

View file

@ -23,6 +23,8 @@ pub fn signal_to_timeline(
let timeline_viewport_x = timeline_viewport_x as f64;
let timeline_width = timeline_viewport_width as f64 * timeline_zoom;
// @TODO hide blocks not visible in the viewport
let mut x_value_pairs = signal
.iter_changes()
.map(|(index, value)| {