diagram plugins
This commit is contained in:
parent
1cdb558823
commit
01a9501f86
29 changed files with 1781 additions and 267 deletions
|
@ -76,5 +76,15 @@ mod js_bridge {
|
|||
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn draw_diagram_element(this: &ExcalidrawController, excalidraw_element: JsValue);
|
||||
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn listen_for_component_text_changes(
|
||||
this: &ExcalidrawController,
|
||||
component_id: &str,
|
||||
on_change: &Closure<dyn Fn(String)>,
|
||||
);
|
||||
|
||||
#[wasm_bindgen(method)]
|
||||
pub fn set_component_text(this: &ExcalidrawController, component_id: &str, text: &str);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue