1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
U
[±dh+ã@sŒddlmZddlmZmZddlmZddlZddlZddl    m
Z
ddl    m Z eGdd    „d    ƒƒZ eGd
d „d ƒƒZ eGd d „d ƒƒZeGdd„dƒƒZddœdd„Zddœdd„Zdddœdd„Zddœdd„Zdddœdd „Zdd!d"œd#d$„Zdd%dd&œd'd(„Zdd)dd*œd+d,„Zd%dd-œd.d/„Zdd%d%dd0œd1d2„Zed3ƒeGd4d5„d5ƒƒƒZed6ƒeGd7d8„d8ƒƒƒZed9ƒeGd:d;„d;ƒƒƒZdS)<é)Ú annotationsé)Ú event_classÚ T_JSON_DICT)Ú    dataclassN)Údom)Úruntimec@s~eZdZUdZded<ded<ded<ded<ded    <ded
<ded <ded <d Zded<d Zded<dd„Zedd„ƒZ    d S)Ú    Animationz
    Animation instance.
    ÚstrÚid_ÚnameÚboolÚ paused_stateÚ
play_stateÚfloatÚ playback_rateÚ
start_timeÚ current_timeÚtype_Nz typing.Optional[AnimationEffect]Úsourceútyping.Optional[str]Úcss_idcCs†tƒ}|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j    dk    rn|j     
¡|d    <|j dk    r‚|j |d
<|S) NÚidr Ú pausedStateÚ    playStateÚ playbackRateÚ    startTimeÚ currentTimeÚtyperÚcssId) Údictr r rrrrrrrÚto_jsonr©ÚselfÚjson©r%úgd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\selenium/webdriver/common/devtools/v85/animation.pyr!4s
 
 
 
 
 
 
 
 
 
 
zAnimation.to_jsonc Cs†|t|dƒt|dƒt|dƒt|dƒt|dƒt|dƒt|dƒt|dƒd    |krht |d    ¡ndd
|kr~t|d
ƒndd 
S) Nrr rrrrrrrr)
r r rrrrrrrr)r
r rÚAnimationEffectÚ    from_json©Úclsr$r%r%r&r(Ds
 
 
 
 
 
 
 
özAnimation.from_json)
Ú__name__Ú
__module__Ú __qualname__Ú__doc__Ú__annotations__rrr!Ú classmethodr(r%r%r%r&r    s
  r    c@s~eZdZUdZded<ded<ded<ded<ded<ded    <ded
<ded <d Zd ed<d Zded<dd„Zedd„ƒZ    d S)r'z"
    AnimationEffect instance
    rÚdelayÚ    end_delayÚiteration_startÚ
iterationsÚdurationr
Ú    directionÚfillÚeasingNz"typing.Optional[dom.BackendNodeId]Úbackend_node_idztyping.Optional[KeyframesRule]Úkeyframes_rulecCsŠtƒ}|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j|d<|j    dk    rn|j     
¡|d    <|j dk    r†|j  
¡|d
<|S) Nr1ÚendDelayÚiterationStartr4r5r6r7r8Ú backendNodeIdÚ keyframesRule) r r1r2r3r4r5r6r7r8r9r!r:r"r%r%r&r!ws
 
 
 
 
 
 
 
 
 
zAnimationEffect.to_jsoncCsŠ|t|dƒt|dƒt|dƒt|dƒt|dƒt|dƒt|dƒt|dƒd    |krjtj |d    ¡ndd
|kr‚t |d
¡ndd 
S) Nr1r;r<r4r5r6r7r8r=r>)
r1r2r3r4r5r6r7r8r9r:)rr
rZ BackendNodeIdr(Ú KeyframesRuler)r%r%r&r(‡s
 
 
 
 
 
 
 
özAnimationEffect.from_json)
r+r,r-r.r/r9r:r!r0r(r%r%r%r&r'Ts
  r'c@s:eZdZUdZded<dZded<dd„Zed    d
„ƒZdS) r?z
    Keyframes Rule
    ztyping.List[KeyframeStyle]Ú    keyframesNrr cCs2tƒ}dd„|jDƒ|d<|jdk    r.|j|d<|S)NcSsg|] }| ¡‘qSr%)r!©Ú.0Úir%r%r&Ú
<listcomp>¤sz)KeyframesRule.to_json.<locals>.<listcomp>r@r )r r@r r"r%r%r&r!¢s
 
 
zKeyframesRule.to_jsoncCs.|dd„|dDƒd|kr&t|dƒnddS)NcSsg|]}t |¡‘qSr%)Ú KeyframeStyler(rAr%r%r&rD¬sz+KeyframesRule.from_json.<locals>.<listcomp>r@r )r@r ©r
r)r%r%r&r(©sþzKeyframesRule.from_json)    r+r,r-r.r/r r!r0r(r%r%r%r&r?—s
 r?c@s6eZdZUdZded<ded<dd„Zedd„ƒZd    S)
rEz
    Keyframe Style
    r
Úoffsetr8cCstƒ}|j|d<|j|d<|S)NrGr8)r rGr8r"r%r%r&r!¼s
 
zKeyframeStyle.to_jsoncCs|t|dƒt|dƒdS)NrGr8)rGr8rFr)r%r%r&r(Âs
 
þzKeyframeStyle.from_jsonN)r+r,r-r.r/r!r0r(r%r%r%r&rE±s
rEz0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])Úreturnccsddi}|V}dS)z2
    Disables animation domain notifications.
    ÚmethodzAnimation.disableNr%©Úcmd_dictr$r%r%r&ÚdisableÊsÿrLccsddi}|V}dS)z1
    Enables animation domain notifications.
    rIzAnimation.enableNr%rJr%r%r&ÚenableÔsÿrMr
z1typing.Generator[T_JSON_DICT, T_JSON_DICT, float])r rHccs*tƒ}||d<d|dœ}|V}t|dƒS)z
    Returns the current time of the an animation.
 
    :param id_: Id of animation.
    :returns: Current time of the page.
    rzAnimation.getCurrentTime©rIÚparamsr)r r)r rOrKr$r%r%r&Úget_current_timeÞs    þrPccsddi}|V}t|dƒS)zo
    Gets the playback rate of the document timeline.
 
    :returns: Playback rate for animations on page.
    rIzAnimation.getPlaybackRater)rrJr%r%r&Úget_playback_rateñs
ÿrQztyping.List[str])Ú
animationsrHccs,tƒ}dd„|Dƒ|d<d|dœ}|V}dS)zz
    Releases a set of animations to no longer be manipulated.
 
    :param animations: List of animation ids to seek.
    cSsg|]}|‘qSr%r%rAr%r%r&rDsz&release_animations.<locals>.<listcomp>rRzAnimation.releaseAnimationsrNN©r )rRrOrKr$r%r%r&Úrelease_animationsþs þrTz@typing.Generator[T_JSON_DICT, T_JSON_DICT, runtime.RemoteObject])Ú animation_idrHccs.tƒ}||d<d|dœ}|V}tj |d¡S)z…
    Gets the remote object of the Animation.
 
    :param animation_id: Animation id.
    :returns: Corresponding remote object.
    Ú animationIdzAnimation.resolveAnimationrNZ remoteObject)r rZ RemoteObjectr()rUrOrKr$r%r%r&Úresolve_animations    þrWr)rRrrHccs4tƒ}dd„|Dƒ|d<||d<d|dœ}|V}dS)zÆ
    Seek a set of animations to a particular time within each animation.
 
    :param animations: List of animation ids to seek.
    :param current_time: Set the current time of each animation.
    cSsg|]}|‘qSr%r%rAr%r%r&rD-sz#seek_animations.<locals>.<listcomp>rRrzAnimation.seekAnimationsrNNrS)rRrrOrKr$r%r%r&Úseek_animations"s
þrXr )rRÚpausedrHccs4tƒ}dd„|Dƒ|d<||d<d|dœ}|V}dS)z 
    Sets the paused state of a set of animations.
 
    :param animations: Animations to set the pause state of.
    :param paused: Paused state to set to.
    cSsg|]}|‘qSr%r%rAr%r%r&rDAszset_paused.<locals>.<listcomp>rRrYzAnimation.setPausedrNNrS)rRrYrOrKr$r%r%r&Ú
set_paused6s
þrZ)rrHccs"tƒ}||d<d|dœ}|V}dS)zz
    Sets the playback rate of the document timeline.
 
    :param playback_rate: Playback rate for animations on page
    rzAnimation.setPlaybackRaterNNrS)rrOrKr$r%r%r&Úset_playback_rateJs þr[)rUr5r1rHccs2tƒ}||d<||d<||d<d|dœ}|V}dS)z±
    Sets the timing of an animation node.
 
    :param animation_id: Animation id.
    :param duration: Duration of the animation.
    :param delay: Delay of the animation.
    rVr5r1zAnimation.setTimingrNNrS)rUr5r1rOrKr$r%r%r&Ú
set_timing[s þr\zAnimation.animationCanceledc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚAnimationCanceledz9
    Event for when an animation has been cancelled.
    r
r r©r$rHcCs|t|dƒdS©Nr)r rFr)r%r%r&r({s
ÿzAnimationCanceled.from_jsonN©r+r,r-r.r/r0r(r%r%r%r&r]rs
r]zAnimation.animationCreatedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚAnimationCreatedz9
    Event for each animation that has been created.
    r
r rr^cCs|t|dƒdSr_rFr)r%r%r&r(‹s
ÿzAnimationCreated.from_jsonNr`r%r%r%r&ra‚s
razAnimation.animationStartedc@s.eZdZUdZded<edddœdd„ƒZdS)    ÚAnimationStartedz4
    Event for animation that has been started.
    r    Ú    animationrr^cCs|t |d¡dS)Nrc)rc)r    r(r)r%r%r&r(›s ÿzAnimationStarted.from_jsonNr`r%r%r%r&rb’s
rb)Ú
__future__rÚutilrrZ dataclassesrÚenumÚtypingÚrrr    r'r?rErLrMrPrQrTrWrXrZr[r\r]rarbr%r%r%r&Ú<module>sB    CB