@perspective-dev/viewer
    Preparing search index...

    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

    class MyPlugin extends customElements.get("perspective-viewer-plugin") {
    // Custom plugin overrides
    }
    Index

    Constructors

    Properties

    config_column_names: any
    min_config_columns: any
    name: string
    select_mode: string

    Methods

    • Returns void

    • Returns Promise<any>

    • Returns void

    • Returns Promise<any>

    • Notes

      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

      Parameters

      Returns Promise<any>

    • Returns void

    • Returns Promise<any>

    • Parameters

      • Optional_config: any

      Returns void

    • Returns void

    • Returns any

    • Delegates 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).

      Parameters

      Returns Promise<any>