cdp_driver/methods/animation.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Animation` domain.
5//!
6//! Method names for the `Animation` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// Disables animation domain notifications.
12pub const DISABLE: &str = "Animation.disable";
13
14/// Enables animation domain notifications.
15pub const ENABLE: &str = "Animation.enable";
16
17/// Returns the current time of the an animation.
18///
19/// Parameters:
20/// - `id`: string
21///
22/// Returns: `currentTime`
23pub const GET_CURRENT_TIME: &str = "Animation.getCurrentTime";
24
25/// Gets the playback rate of the document timeline.
26///
27/// Returns: `playbackRate`
28pub const GET_PLAYBACK_RATE: &str = "Animation.getPlaybackRate";
29
30/// Releases a set of animations to no longer be manipulated.
31///
32/// Parameters:
33/// - `animations`: array
34pub const RELEASE_ANIMATIONS: &str = "Animation.releaseAnimations";
35
36/// Gets the remote object of the Animation.
37///
38/// Parameters:
39/// - `animationId`: string
40///
41/// Returns: `remoteObject`
42pub const RESOLVE_ANIMATION: &str = "Animation.resolveAnimation";
43
44/// Seek a set of animations to a particular time within each animation.
45///
46/// Parameters:
47/// - `animations`: array
48/// - `currentTime`: number (optional)
49/// - `currentTimes`: array (optional)
50pub const SEEK_ANIMATIONS: &str = "Animation.seekAnimations";
51
52/// Sets the paused state of a set of animations.
53///
54/// Parameters:
55/// - `animations`: array
56/// - `paused`: boolean
57pub const SET_PAUSED: &str = "Animation.setPaused";
58
59/// Sets the playback rate of the document timeline.
60///
61/// Parameters:
62/// - `playbackRate`: number
63pub const SET_PLAYBACK_RATE: &str = "Animation.setPlaybackRate";
64
65/// Sets the timing of an animation node.
66///
67/// Parameters:
68/// - `animationId`: string
69/// - `duration`: number
70/// - `delay`: number
71pub const SET_TIMING: &str = "Animation.setTiming";