Crate perspective_viewer

Crate perspective_viewer 

Source
Expand description

The API for the @perspective-dev/viewer JavaScript library.

Modules§

components
components contains all Yew Component types, but only exports the 4 necessary for public Custom Elements. The rest are internal components of these 4.
config
A collection of (de-)serializable structs which capture the application state, suitable for persistence, history, etc. features.
custom_elements
exprtk
utils
A catch all for project-wide macros and general-purpose functions that are not directly related to Perspective.

Macros§

css
define_web_components
derive_model
derive_wasm_abi
A macro for implementing the wasm_bindgen boilerplate for types which implement serde::{Serialize, Deserialize}.
enable_weak_link_test
A macro which set a property called weak_link on the container Properties when cfg(test), such that unit tests may send messages to a component.
js_log
js_log_maybe
max
maybe
min
test_html
A macro which derives a yew::Component for an arbitrary HTML snippet and mounts it, for testing.

Functions§

bootstrap_web_components
Register Web Components with the global registry, given a Perspective module.
js_init
Register this crate’s Custom Elements in the browser’s current session.
registerPlugin
Register a plugin globally.