Skip to main content

Crate treemaker_wasm

Crate treemaker_wasm 

Source
Expand description

wasm-bindgen wrapper around treemaker-core.

The wasm API stores loaded trees behind integer handles so JavaScript can call into the engine without copying the whole model for every operation. Error values are serialized objects with the same stable code values as native treemaker_core::TreeError.

Functionsยง

build_crease_pattern
check
cp_status_report
free_tree
load_tmd
optimize_edges
optimize_scale
optimize_strain
save_tmd5
tree_summary