The default perspective plugin which is registered and activated
automcatically when a <perspective-viewer> is loaded without plugins.
While you will not typically instantiate this class directly, it is simple
enough to function as a good "default" plugin implementation which can be
extended to create custom plugins.
When you pass a wasm_bindgen wrapped type into Rust, it acts like a
move. Ergo, if you replace the & in the view argument, the JS copy
of the View will be invalid
The
<perspective-viewer-plugin>
element.The default perspective plugin which is registered and activated automcatically when a
<perspective-viewer>
is loaded without plugins. While you will not typically instantiate this class directly, it is simple enough to function as a good "default" plugin implementation which can be extended to create custom plugins.Example