pub struct KeyframeTrack3D { /* private fields */ }Expand description
Vector keyframe track.
Implementations§
Source§impl KeyframeTrack3D
impl KeyframeTrack3D
Sourcepub fn push_eased(
&self,
time: f32,
x: f32,
y: f32,
z: f32,
easing: &str,
) -> Result<(), JsValue>
pub fn push_eased( &self, time: f32, x: f32, y: f32, z: 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 KeyframeTrack3D
impl Clone for KeyframeTrack3D
Source§fn clone(&self) -> KeyframeTrack3D
fn clone(&self) -> KeyframeTrack3D
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 KeyframeTrack3D
impl Debug for KeyframeTrack3D
Source§impl Default for KeyframeTrack3D
impl Default for KeyframeTrack3D
Source§impl From<KeyframeTrack3D> for JsValue
impl From<KeyframeTrack3D> for JsValue
Source§fn from(value: KeyframeTrack3D) -> Self
fn from(value: KeyframeTrack3D) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyframeTrack3D
impl FromWasmAbi for KeyframeTrack3D
Source§impl IntoWasmAbi for KeyframeTrack3D
impl IntoWasmAbi for KeyframeTrack3D
Source§impl LongRefFromWasmAbi for KeyframeTrack3D
impl LongRefFromWasmAbi for KeyframeTrack3D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<KeyframeTrack3D>
type Anchor = RcRef<KeyframeTrack3D>
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 KeyframeTrack3D
impl OptionFromWasmAbi for KeyframeTrack3D
Source§impl OptionIntoWasmAbi for KeyframeTrack3D
impl OptionIntoWasmAbi for KeyframeTrack3D
Source§impl RefFromWasmAbi for KeyframeTrack3D
impl RefFromWasmAbi for KeyframeTrack3D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<KeyframeTrack3D>
type Anchor = RcRef<KeyframeTrack3D>
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 KeyframeTrack3D
impl RefMutFromWasmAbi for KeyframeTrack3D
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack3D>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<KeyframeTrack3D>
type Anchor = RcRefMut<KeyframeTrack3D>
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 KeyframeTrack3D
impl TryFromJsValue for KeyframeTrack3D
Source§impl VectorFromWasmAbi for KeyframeTrack3D
impl VectorFromWasmAbi for KeyframeTrack3D
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KeyframeTrack3D]>
Source§impl VectorIntoWasmAbi for KeyframeTrack3D
impl VectorIntoWasmAbi for KeyframeTrack3D
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KeyframeTrack3D]>) -> Self::Abi
Source§impl WasmDescribeVector for KeyframeTrack3D
impl WasmDescribeVector for KeyframeTrack3D
impl SupportsConstructor for KeyframeTrack3D
impl SupportsInstanceProperty for KeyframeTrack3D
impl SupportsStaticProperty for KeyframeTrack3D
Auto Trait Implementations§
impl Freeze for KeyframeTrack3D
impl RefUnwindSafe for KeyframeTrack3D
impl Send for KeyframeTrack3D
impl Sync for KeyframeTrack3D
impl Unpin for KeyframeTrack3D
impl UnsafeUnpin for KeyframeTrack3D
impl UnwindSafe for KeyframeTrack3D
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.