pub struct PerspectiveDebugPluginElement { /* private fields */ }
Expand description
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
}
Implementations§
Source§impl PerspectiveDebugPluginElement
impl PerspectiveDebugPluginElement
pub fn new(elem: HtmlElement) -> Self
pub fn name(&self) -> String
pub fn select_mode(&self) -> String
pub fn min_config_columns(&self) -> JsValue
pub fn config_column_names(&self) -> JsValue
pub fn update(&self, view: &View) -> ApiFuture<()>
Sourcepub fn draw(&self, view: &View) -> ApiFuture<()>
pub fn draw(&self, view: &View) -> ApiFuture<()>
§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
pub fn clear(&self) -> ApiFuture<()>
pub fn resize(&self) -> ApiFuture<()>
pub fn restyle(&self) -> ApiFuture<()>
pub fn save(&self) -> ApiFuture<()>
pub fn restore(&self) -> ApiFuture<()>
pub fn delete(&self) -> ApiFuture<()>
pub fn connected_callback(&self)
Trait Implementations§
Source§impl From<PerspectiveDebugPluginElement> for JsValue
impl From<PerspectiveDebugPluginElement> for JsValue
Source§fn from(value: PerspectiveDebugPluginElement) -> Self
fn from(value: PerspectiveDebugPluginElement) -> Self
Converts to this type from the input type.
Source§impl RefFromWasmAbi for PerspectiveDebugPluginElement
impl RefFromWasmAbi for PerspectiveDebugPluginElement
Source§type Anchor = RcRef<PerspectiveDebugPluginElement>
type Anchor = RcRef<PerspectiveDebugPluginElement>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl VectorFromWasmAbi for PerspectiveDebugPluginElement
impl VectorFromWasmAbi for PerspectiveDebugPluginElement
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PerspectiveDebugPluginElement]>
Source§impl VectorIntoJsValue for PerspectiveDebugPluginElement
impl VectorIntoJsValue for PerspectiveDebugPluginElement
fn vector_into_jsvalue(vector: Box<[PerspectiveDebugPluginElement]>) -> JsValue
Source§impl VectorIntoWasmAbi for PerspectiveDebugPluginElement
impl VectorIntoWasmAbi for PerspectiveDebugPluginElement
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PerspectiveDebugPluginElement]>) -> Self::Abi
Source§impl WasmDescribeVector for PerspectiveDebugPluginElement
impl WasmDescribeVector for PerspectiveDebugPluginElement
impl SupportsConstructor for PerspectiveDebugPluginElement
impl SupportsInstanceProperty for PerspectiveDebugPluginElement
impl SupportsStaticProperty for PerspectiveDebugPluginElement
Auto Trait Implementations§
impl Freeze for PerspectiveDebugPluginElement
impl RefUnwindSafe for PerspectiveDebugPluginElement
impl !Send for PerspectiveDebugPluginElement
impl !Sync for PerspectiveDebugPluginElement
impl Unpin for PerspectiveDebugPluginElement
impl UnwindSafe for PerspectiveDebugPluginElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.