pub struct KeyframeTrack4D { /* private fields */ }Expand description
Vector keyframe track.
Implementations§
Source§impl KeyframeTrack4D
impl KeyframeTrack4D
Sourcepub fn push_eased(
&self,
time: f32,
x: f32,
y: f32,
z: f32,
w: f32,
easing: &str,
) -> Result<(), JsValue>
pub fn push_eased( &self, time: f32, x: f32, y: f32, z: f32, w: f32, easing: &str, ) -> Result<(), JsValue>
Add a vector keyframe with easing.
Sourcepub fn to_array(&self) -> Float32Array
pub fn to_array(&self) -> Float32Array
Current vector value.
Sourcepub fn value_at(&self, seconds: f32) -> Float32Array
pub fn value_at(&self, seconds: f32) -> Float32Array
Value at an absolute time.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether playback is complete.
Trait Implementations§
Source§impl Clone for KeyframeTrack4D
impl Clone for KeyframeTrack4D
Source§fn clone(&self) -> KeyframeTrack4D
fn clone(&self) -> KeyframeTrack4D
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyframeTrack4D
impl Debug for KeyframeTrack4D
Source§impl Default for KeyframeTrack4D
impl Default for KeyframeTrack4D
Source§impl From<KeyframeTrack4D> for JsValue
impl From<KeyframeTrack4D> for JsValue
Source§fn from(value: KeyframeTrack4D) -> Self
fn from(value: KeyframeTrack4D) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyframeTrack4D
impl FromWasmAbi for KeyframeTrack4D
Source§impl IntoWasmAbi for KeyframeTrack4D
impl IntoWasmAbi for KeyframeTrack4D
Source§impl LongRefFromWasmAbi for KeyframeTrack4D
impl LongRefFromWasmAbi for KeyframeTrack4D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<KeyframeTrack4D>
type Anchor = RcRef<KeyframeTrack4D>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for KeyframeTrack4D
impl OptionFromWasmAbi for KeyframeTrack4D
Source§impl OptionIntoWasmAbi for KeyframeTrack4D
impl OptionIntoWasmAbi for KeyframeTrack4D
Source§impl RefFromWasmAbi for KeyframeTrack4D
impl RefFromWasmAbi for KeyframeTrack4D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<KeyframeTrack4D>
type Anchor = RcRef<KeyframeTrack4D>
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 RefMutFromWasmAbi for KeyframeTrack4D
impl RefMutFromWasmAbi for KeyframeTrack4D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack4D>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<KeyframeTrack4D>
type Anchor = RcRefMut<KeyframeTrack4D>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for KeyframeTrack4D
impl TryFromJsValue for KeyframeTrack4D
Source§impl VectorFromWasmAbi for KeyframeTrack4D
impl VectorFromWasmAbi for KeyframeTrack4D
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KeyframeTrack4D]>
Source§impl VectorIntoWasmAbi for KeyframeTrack4D
impl VectorIntoWasmAbi for KeyframeTrack4D
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KeyframeTrack4D]>) -> Self::Abi
Source§impl WasmDescribeVector for KeyframeTrack4D
impl WasmDescribeVector for KeyframeTrack4D
impl SupportsConstructor for KeyframeTrack4D
impl SupportsInstanceProperty for KeyframeTrack4D
impl SupportsStaticProperty for KeyframeTrack4D
Auto Trait Implementations§
impl Freeze for KeyframeTrack4D
impl RefUnwindSafe for KeyframeTrack4D
impl Send for KeyframeTrack4D
impl Sync for KeyframeTrack4D
impl Unpin for KeyframeTrack4D
impl UnsafeUnpin for KeyframeTrack4D
impl UnwindSafe for KeyframeTrack4D
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::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.