feat: implement move column move row with tests

This commit is contained in:
BrianHung
2025-06-30 10:24:17 -07:00
committed by Nicolás Hatcher Andrés
parent 7dc49d5dd7
commit c2777c73ac
6 changed files with 418 additions and 3 deletions

View File

@@ -234,6 +234,25 @@ impl Model {
.map_err(to_js_error)
}
#[wasm_bindgen(js_name = "moveColumn")]
pub fn move_column_action(
&mut self,
sheet: u32,
column: i32,
delta: i32,
) -> Result<(), JsError> {
self.model
.move_column_action(sheet, column, delta)
.map_err(to_js_error)
}
#[wasm_bindgen(js_name = "moveRow")]
pub fn move_row_action(&mut self, sheet: u32, row: i32, delta: i32) -> Result<(), JsError> {
self.model
.move_row_action(sheet, row, delta)
.map_err(to_js_error)
}
#[wasm_bindgen(js_name = "setRowsHeight")]
pub fn set_rows_height(
&mut self,