-
Notifications
You must be signed in to change notification settings - Fork 0
/
SVGAnimationElement.cljs
170 lines (123 loc) · 4.86 KB
/
SVGAnimationElement.cljs
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
(ns web.svg.SVGAnimationElement
"The SVGAnimationElement interface is the base interface for all
the animation element interfaces: `web.svg.SVGAnimateElement`,
`web.deprecated.SVGAnimateColorElement`, `web.svg.SVGAnimateMotionElement`
`web.svg.SVGAnimateTransformElement`."
(:refer-clojure :exclude []))
(defn get-start-time
"Method.
Returns a float representing the begin time, in seconds, for
animation element's current interval, if it exists, regardless
whether the interval has begun yet. If there is no current interval,
a DOMException with code INVALID_STATE_ERR is thrown."
[this & args]
(-> this .-getStartTime (.apply this (clj->js args))))
(defn get-current-time
"Method.
Returns a float representing the current time in seconds relative
time zero for the given time container."
[this & args]
(-> this .-getCurrentTime (.apply this (clj->js args))))
(defn get-simple-duration
"Method.
Returns a float representing the number of seconds for the simple
for this animation. If the simple duration is undefined (e.g.,
end time is indefinite), then a DOMException with code NOT_SUPPORTED_ERR
raised."
[this & args]
(-> this .-getSimpleDuration (.apply this (clj->js args))))
(defn begin-element
"Method.
Creates a begin instance time for the current time. The new instance
is added to the begin instance times list. The behavior of this
is equivalent to beginElementAt(0)."
[this & args]
(-> this .-beginElement (.apply this (clj->js args))))
(defn begin-element-at
"Method.
Creates a begin instance time for the current time plus the
offset. The new instance time is added to the begin instance
list."
[this & args]
(-> this .-beginElementAt (.apply this (clj->js args))))
(defn end-element
"Method.
Creates an end instance time for the current time. The new instance
is added to the end instance times list. The behavior of this
is equivalent to endElementAt(0)."
[this & args]
(-> this .-endElement (.apply this (clj->js args))))
(defn end-element-at
"Method.
Creates a end instance time for the current time plus the specified
The new instance time is added to the end instance times list."
[this & args]
(-> this .-endElementAt (.apply this (clj->js args))))
(defn target-element
"Property.
The SVGAnimationElement.targetElement property refers to the
which is being animated. If no target element is being animated
example, because the href attribute specifies an unknown element),
value returned is null.
`var targetElement = someElement.targetElement;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement`"
[this]
(-> this (.-targetElement)))
(defn set-target-element!
"Property.
The SVGAnimationElement.targetElement property refers to the
which is being animated. If no target element is being animated
example, because the href attribute specifies an unknown element),
value returned is null.
`var targetElement = someElement.targetElement;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement`"
[this val]
(aset this "targetElement" val))
(defn onbegin
"Property.
The SVGAnimationElement.onbegin property refers to the event
for the beginEvent.
`var beginEventHandler = someElement.onbegin;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onbegin`"
[this]
(-> this (.-onbegin)))
(defn set-onbegin!
"Property.
The SVGAnimationElement.onbegin property refers to the event
for the beginEvent.
`var beginEventHandler = someElement.onbegin;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onbegin`"
[this val]
(aset this "onbegin" val))
(defn onend
"Property.
The SVGAnimationElement.onend property refers to the event handler
the endEvent.
`var endEventHandler = someElement.onend;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onend`"
[this]
(-> this (.-onend)))
(defn set-onend!
"Property.
The SVGAnimationElement.onend property refers to the event handler
the endEvent.
`var endEventHandler = someElement.onend;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onend`"
[this val]
(aset this "onend" val))
(defn onrepeat
"Property.
The SVGAnimationElement.onrepeat property refers to the event
for the repeatEvent.
`var repeatEventHandler = someElement.onrepeat;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onrepeat`"
[this]
(-> this (.-onrepeat)))
(defn set-onrepeat!
"Property.
The SVGAnimationElement.onrepeat property refers to the event
for the repeatEvent.
`var repeatEventHandler = someElement.onrepeat;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/onrepeat`"
[this val]
(aset this "onrepeat" val))