use super::HwpDocument;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
impl HwpDocument {
#[wasm_bindgen(js_name = getFootnoteShape)]
pub fn get_footnote_shape(&self, section_idx: u32) -> Result<String, JsValue> {
self.core
.get_footnote_shape_native(section_idx as usize)
.map_err(|e| e.into())
}
#[wasm_bindgen(js_name = applyFootnoteShape)]
pub fn apply_footnote_shape(
&mut self,
section_idx: u32,
props_json: &str,
) -> Result<String, JsValue> {
self.core
.apply_footnote_shape_native(section_idx as usize, props_json)
.map_err(|e| e.into())
}
}