This commit is contained in:
vcoppe committed 2026-10-07 18:54:00 +02:00
1 parent 290f4d8c44
commit e07ec97e12
5 files changed
+339 -39

No files matched your search

+2
View File
@@ -575,6 +575,8 @@ pub fn update_waypoint(
}
}
/// Keeps the trackpoints `start` to `end` (both included) of the selection, counted over its
/// segments one after the other, and removes the others (and what is left empty).
#[wasm_bindgen]
pub fn crop(start: u32, end: u32) -> bool {
start <= end && edit(Command::Crop(engine::Crop { start, end }))