fmt
This commit is contained in:
parent
ef74c4d115
commit
c0872b0eba
7 changed files with 32 additions and 10 deletions
|
@ -81,7 +81,11 @@ pub(super) async fn get_time_table() -> wellen::TimeTable {
|
|||
serde_json::from_value(serde_json::to_value(time_table).unwrap_throw()).unwrap_throw()
|
||||
}
|
||||
|
||||
pub(super) async fn load_signal_and_get_timeline(signal_ref: wellen::SignalRef, screen_width: u32, block_height: u32) -> shared::Timeline {
|
||||
pub(super) async fn load_signal_and_get_timeline(
|
||||
signal_ref: wellen::SignalRef,
|
||||
screen_width: u32,
|
||||
block_height: u32,
|
||||
) -> shared::Timeline {
|
||||
// @TODO implement, copy from tauri platform
|
||||
shared::Timeline { blocks: Vec::new() }
|
||||
}
|
||||
|
|
|
@ -21,7 +21,11 @@ pub(super) async fn get_time_table() -> wellen::TimeTable {
|
|||
serde_wasm_bindgen::from_value(tauri_glue::get_time_table().await.unwrap_throw()).unwrap_throw()
|
||||
}
|
||||
|
||||
pub(super) async fn load_signal_and_get_timeline(signal_ref: wellen::SignalRef, screen_width: u32, block_height: u32) -> shared::Timeline {
|
||||
pub(super) async fn load_signal_and_get_timeline(
|
||||
signal_ref: wellen::SignalRef,
|
||||
screen_width: u32,
|
||||
block_height: u32,
|
||||
) -> shared::Timeline {
|
||||
serde_wasm_bindgen::from_value(
|
||||
tauri_glue::load_signal_and_get_timeline(signal_ref.index(), screen_width, block_height)
|
||||
.await
|
||||
|
@ -55,7 +59,11 @@ mod tauri_glue {
|
|||
pub async fn get_time_table() -> Result<JsValue, JsValue>;
|
||||
|
||||
#[wasm_bindgen(catch)]
|
||||
pub async fn load_signal_and_get_timeline(signal_ref_index: usize, screen_width: u32, block_height: u32) -> Result<JsValue, JsValue>;
|
||||
pub async fn load_signal_and_get_timeline(
|
||||
signal_ref_index: usize,
|
||||
screen_width: u32,
|
||||
block_height: u32,
|
||||
) -> Result<JsValue, JsValue>;
|
||||
|
||||
#[wasm_bindgen(catch)]
|
||||
pub async fn unload_signal(signal_ref_index: usize) -> Result<(), JsValue>;
|
||||
|
|
Reference in a new issue