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<()>
pub fn draw(&self, view: View) -> ApiFuture<()>
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
§type Anchor = Ref<'static, PerspectiveDebugPluginElement>
type Anchor = Ref<'static, 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 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
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,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§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.