add row height test case + nodejs bindings

This commit is contained in:
BrianHung
2025-07-13 17:01:16 -07:00
committed by Nicolás Hatcher Andrés
parent c2777c73ac
commit d45e8fd56d
3 changed files with 58 additions and 0 deletions

View File

@@ -663,4 +663,20 @@ impl UserModel {
.delete_defined_name(&name, scope)
.map_err(|e| to_js_error(e.to_string()))
}
#[napi(js_name = "moveColumn")]
pub fn move_column(&mut self, sheet: u32, column: i32, delta: i32) -> Result<()> {
self
.model
.move_column_action(sheet, column, delta)
.map_err(to_js_error)
}
#[napi(js_name = "moveRow")]
pub fn move_row(&mut self, sheet: u32, row: i32, delta: i32) -> Result<()> {
self
.model
.move_row_action(sheet, row, delta)
.map_err(to_js_error)
}
}