pub struct KeyframeTrack { /* private fields */ }Expand description
Scalar keyframe track.
Implementations§
Source§impl KeyframeTrack
impl KeyframeTrack
Sourcepub fn push_eased(
&self,
time: f32,
value: f32,
easing: &str,
) -> Result<(), JsValue>
pub fn push_eased( &self, time: f32, value: f32, easing: &str, ) -> Result<(), JsValue>
Add a keyframe with easing applied to the following segment.
Sourcepub fn value_at(&self, seconds: f32) -> f32
pub fn value_at(&self, seconds: f32) -> f32
Value at an absolute time, or NaN if the track is empty.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether playback is complete.
Trait Implementations§
Source§impl Clone for KeyframeTrack
impl Clone for KeyframeTrack
Source§fn clone(&self) -> KeyframeTrack
fn clone(&self) -> KeyframeTrack
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 KeyframeTrack
impl Debug for KeyframeTrack
Source§impl Default for KeyframeTrack
impl Default for KeyframeTrack
Source§impl From<KeyframeTrack> for JsValue
impl From<KeyframeTrack> for JsValue
Source§fn from(value: KeyframeTrack) -> Self
fn from(value: KeyframeTrack) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KeyframeTrack
impl FromWasmAbi for KeyframeTrack
Source§impl IntoWasmAbi for KeyframeTrack
impl IntoWasmAbi for KeyframeTrack
Source§impl LongRefFromWasmAbi for KeyframeTrack
impl LongRefFromWasmAbi for KeyframeTrack
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<KeyframeTrack>
type Anchor = RcRef<KeyframeTrack>
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 KeyframeTrack
impl OptionFromWasmAbi for KeyframeTrack
Source§impl OptionIntoWasmAbi for KeyframeTrack
impl OptionIntoWasmAbi for KeyframeTrack
Source§impl RefFromWasmAbi for KeyframeTrack
impl RefFromWasmAbi for KeyframeTrack
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<KeyframeTrack>
type Anchor = RcRef<KeyframeTrack>
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 KeyframeTrack
impl RefMutFromWasmAbi for KeyframeTrack
Source§type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
type Abi = WasmPtr<WasmRefCell<KeyframeTrack>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<KeyframeTrack>
type Anchor = RcRefMut<KeyframeTrack>
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 KeyframeTrack
impl TryFromJsValue for KeyframeTrack
Source§impl VectorFromWasmAbi for KeyframeTrack
impl VectorFromWasmAbi for KeyframeTrack
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KeyframeTrack]>
Source§impl VectorIntoWasmAbi for KeyframeTrack
impl VectorIntoWasmAbi for KeyframeTrack
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KeyframeTrack]>) -> Self::Abi
Source§impl WasmDescribeVector for KeyframeTrack
impl WasmDescribeVector for KeyframeTrack
impl SupportsConstructor for KeyframeTrack
impl SupportsInstanceProperty for KeyframeTrack
impl SupportsStaticProperty for KeyframeTrack
Auto Trait Implementations§
impl Freeze for KeyframeTrack
impl RefUnwindSafe for KeyframeTrack
impl Send for KeyframeTrack
impl Sync for KeyframeTrack
impl Unpin for KeyframeTrack
impl UnsafeUnpin for KeyframeTrack
impl UnwindSafe for KeyframeTrack
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.