use super::HwpDocument;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
impl HwpDocument {
#[wasm_bindgen(js_name = importParagraphBlock)]
pub fn import_paragraph_block(
&mut self,
source: &HwpDocument,
options_json: &str,
) -> Result<String, JsValue> {
self.import_paragraph_block_json_native(source.document(), options_json)
.map_err(JsValue::from)
}
#[wasm_bindgen(js_name = applyTemplateOperation)]
pub fn apply_template_operation(&mut self, options_json: &str) -> Result<String, JsValue> {
self.apply_template_operation_json_native(options_json)
.map_err(JsValue::from)
}
}