This commit is contained in:
vcoppe committed 2026-10-14 09:22:07 +02:00
1 parent 41b9116c6a
commit 97d597e139
181 files changed
+1970 -2643

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
//! Editing the metadata, the style and the structure of the files.
use gpx_engine::api;
use wasm_bindgen::prelude::*;
use crate::session::*;
use crate::ts::Outcome;
// Edit commands
#[wasm_bindgen]
pub fn metadata(name: &str, desc: &str) -> Outcome {
run(|e| api::metadata(e, name, desc))
}
#[wasm_bindgen]
pub fn style(color: Option<String>, opacity: Option<f64>, width: Option<f64>) -> Outcome {
run(|e| api::style(e, color.as_deref(), opacity, width))
}
#[wasm_bindgen]
pub fn new_track() -> Outcome {
run(api::new_track)
}
#[wasm_bindgen]
pub fn new_track_segment() -> Outcome {
run(api::new_track_segment)
}