pub struct Frame { /* private fields */ }Expand description
A frame represents a single state in an animation sequence. Based on Plotly.js frame_attributes.js specification
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn group(self, value: impl AsRef<str>) -> Self
pub fn group(self, value: impl AsRef<str>) -> Self
An identifier that specifies the group to which the frame belongs, used by animate to select a subset of frames
Sourcepub fn traces(self, value: Vec<usize>) -> Self
pub fn traces(self, value: Vec<usize>) -> Self
A list of trace indices that identify the respective traces in the data attribute
Sourcepub fn baseframe(self, value: impl AsRef<str>) -> Self
pub fn baseframe(self, value: impl AsRef<str>) -> Self
The name of the frame into which this frame’s properties are merged before applying. This is used to unify properties and avoid needing to specify the same values for the same properties in multiple frames.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl !RefUnwindSafe for Frame
impl !Send for Frame
impl !Sync for Frame
impl Unpin for Frame
impl !UnwindSafe for Frame
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