Properties:
| Name | Type | Description |
|---|---|---|
canvas |
html.Canvas | (default: |
source |
string | (default: |
instance |
object | [readonly] The WASM instance once loaded. |
Methods
-
Loads the WASM module and emits the
readyevent when the module is ready to be used. -
Converts a C++ embind std::vector
to an ArrayBuffer. Do not forget to explicitly delete the vector after it is no longer required, or use the delflag.Name Type Default Description vecStdVector The vector.
delbool false optional Whether to delete the std::vector
after conversion. Returns:
Type Description ArrayBuffer The vector as ArrayBuffer.