Crate maia_wasm

Source
Expand description

maia-wasm is part of Maia SDR. It is a web application that serves as the UI of Maia SDR. It renders the waterfall using WebGL2 and gives a UI composed of HTML elements that interacts with the maia-httpd RESTful API.

Modules§

array_view
Transformation of Rust arrays to JS.
colormap
Colormaps.
pointer
Pointer device handling.
render
Render engine.
ui
User interface.
version
Version information about maia-wasm.
waterfall
WebGL2 waterfall.
waterfall_interaction
User interaction with the waterfall.
websocket
WebSocket client for waterfall data.

Macros§

impl_dummy_preferences
UI preferences macro: implements dummy update_ methods for Preferences.
impl_onchange
UI macro: implements a _onchange methods that perform a PATCH request.
impl_onchange_patch_modify_noop
UI macro: implements a dummy name_onchange_patch_modify method.
impl_patch
UI macro: implements a method to send a PATCH request.
impl_post_patch_update_elements_noop
UI macro: implements a dummy post_patch_name_update_elements method.
impl_post_update_noop
UI macro: implements a dummy post_update_name_elements method.
impl_put
UI macro: implements a method to send a PUT request.
impl_section
UI macro: implements a REST API section with default functionality.
impl_section_custom
UI macro: implements a REST API section using custom functionality.
impl_tabs
UI macro: implements methods for an interface with tabs.
impl_update_elements
UI macro: implements methods to update UI elements.
onchange_apply
UI macro: implement an onchange method that calls an apply function.
onchange_apply_noprefs
UI macro: implement an onchange method that calls an apply method without updating the preferences.
set_on
UI macro: set event callback for UI elements.
ui_elements
UI macro: define UI elements.

Functions§

get_window_and_document
Returns the Window and Document objects.
maia_wasm_start
Starts the maia-wasm web application.
new_waterfall
Creates a Waterfall and associated objects.
setup_render_loop
Sets up a render loop for the waterfall.
start
Initialize the wasm module.