pub struct AnimationParams {
pub action: AnimationAction,
pub selector: Option<String>,
pub points: Option<usize>,
pub capture: Option<bool>,
pub restore: Option<bool>,
pub cols: Option<usize>,
pub record: Option<bool>,
pub clear: Option<bool>,
pub webview_label: Option<String>,
}Expand description
Parameters for the compound animation tool.
Fields§
§action: AnimationActionAction to perform: list, scrub.
selector: Option<String>CSS selector for the target element. For list, scopes the query (omit
for all running animations). For scrub, selects the element to seek
(omit to auto-pick the first currently-animating element).
points: Option<usize>(scrub) Number of evenly-spaced progress points to sample. Default 20,
clamped to 2..=120.
capture: Option<bool>(scrub) If true, capture a native screenshot at each point and return a
single contact-sheet filmstrip PNG. Default false (geometry curve only).
restore: Option<bool>(scrub) If true (default), resume the animation after scrubbing;
otherwise leave it paused at the final point.
cols: Option<usize>(scrub, with capture) Columns in the filmstrip grid. Default ~sqrt(n).
record: Option<bool>(sample) If true, arm the rAF recorder; if false (default), read back
recorded sessions.
clear: Option<bool>(sample, read) If true, clear recorded sessions after returning them.
webview_label: Option<String>Target webview label.
Trait Implementations§
Source§impl Debug for AnimationParams
impl Debug for AnimationParams
Source§impl<'de> Deserialize<'de> for AnimationParams
impl<'de> Deserialize<'de> for AnimationParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for AnimationParams
impl JsonSchema for AnimationParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more