Readonlyconfig_Readonlymin_ReadonlynameReadonlyselect_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
Optional_config: anyDelegates to draw() VIRTUALLY — through the JS element's draw
property, never self.draw(view) (Rust static dispatch). This
element is the documented base class for custom plugins
(class MyPlugin extends customElements.get("perspective-viewer-plugin")), whose contract is
"update() defaults to dispatch to draw()" — a
subclass overriding only draw must receive update-path repaints
(BindDisposition::Unchanged/Adopted runs,
PLUGIN_DRAW_INVARIANT_PLAN.md); the static call bypassed the
override and repainted the Debug CSV instead (the
view_lifecycle.spec regression).
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