lib/phlex/svg/standard_elements.rb

Lines

100%

66 of 66 covered

Branches

โ€”

0 of 0 covered

Methods

โ€”

0 of 0 covered

1# frozen_string_literal: true
2
31module Phlex::SVG::StandardElements
41 extend Phlex::SGML::Elements
5
6 # Outputs an `<a>` tag.
7 # See https://developer.mozilla.org/docs/Web/SVG/Element/a
81 register_element def a(
9 download: nil,
10 href: nil,
11 hreflang: nil,
12 ping: nil,
13 referrerpolicy: nil,
14 rel: nil,
15 target: nil,
16 type: nil,
17 **attributes,
18 &content
19 ) = nil
20 # Outputs an `<animate>` tag.
21 # See https://developer.mozilla.org/docs/Web/SVG/Element/animate
221 register_element def animate(
23 attributeName: nil,
24 values: nil,
25 dur: nil,
26 repeatCount: nil,
27 **attributes,
28 &content
29 ) = nil
30 # Outputs an `<animateMotion>` tag.
31 # See https://developer.mozilla.org/docs/Web/SVG/Element/animateMotion
321 register_element def animateMotion(
33 keyPoints: nil,
34 path: nil,
35 rotate: nil,
36 begin: nil,
37 dur: nil,
38 end: nil,
39 repeatCount: nil,
40 repeatDur: nil,
41 fill: nil,
42 calcMode: nil,
43 values: nil,
44 keyTimes: nil,
45 keySplines: nil,
46 from: nil,
47 to: nil,
48 by: nil,
49 attributeName: nil,
50 additive: nil,
51 accumulate: nil,
52 **attributes,
53 &content
54 ) = nil
55 # Outputs an `<animateTransform>` tag.
56 # See https://developer.mozilla.org/docs/Web/SVG/Element/animateTransform
571 register_element def animateTransform(
58 **attributes,
59 &content
60 ) = nil
61 # Outputs a `<circle>` tag.
62 # See https://developer.mozilla.org/docs/Web/SVG/Element/circle
631 register_element def circle(
64 **attributes,
65 &content
66 ) = nil
67 # Outputs a `<clipPath>` tag.
68 # See https://developer.mozilla.org/docs/Web/SVG/Element/clipPath
691 register_element def clipPath(
70 **attributes,
71 &content
72 ) = nil
73 # Outputs a `<defs>` tag.
74 # See https://developer.mozilla.org/docs/Web/SVG/Element/defs
751 register_element def defs(
76 **attributes,
77 &content
78 ) = nil
79 # Outputs a `<desc>` tag.
80 # See https://developer.mozilla.org/docs/Web/SVG/Element/desc
811 register_element def desc(
82 **attributes,
83 &content
84 ) = nil
85 # Outputs a `<discard>` tag.
86 # See https://developer.mozilla.org/docs/Web/SVG/Element/discard
871 register_element def discard(
88 **attributes,
89 &content
90 ) = nil
91 # Outputs an `<ellipse>` tag.
92 # See https://developer.mozilla.org/docs/Web/SVG/Element/ellipse
931 register_element def ellipse(
94 **attributes,
95 &content
96 ) = nil
97 # Outputs an `<feBlend>` tag.
98 # See https://developer.mozilla.org/docs/Web/SVG/Element/feBlend
991 register_element def feBlend(
100 **attributes,
101 &content
102 ) = nil
103 # Outputs an `<feColorMatrix>` tag.
104 # See https://developer.mozilla.org/docs/Web/SVG/Element/feColorMatrix
1051 register_element def feColorMatrix(
106 **attributes,
107 &content
108 ) = nil
109 # Outputs an `<feComponentTransfer>` tag.
110 # See https://developer.mozilla.org/docs/Web/SVG/Element/feComponentTransfer
1111 register_element def feComponentTransfer(
112 **attributes,
113 &content
114 ) = nil
115 # Outputs an `<feComposite>` tag.
116 # See https://developer.mozilla.org/docs/Web/SVG/Element/feComposite
1171 register_element def feComposite(
118 **attributes,
119 &content
120 ) = nil
121 # Outputs an `<feConvolveMatrix>` tag.
122 # See https://developer.mozilla.org/docs/Web/SVG/Element/feConvolveMatrix
1231 register_element def feConvolveMatrix(
124 **attributes,
125 &content
126 ) = nil
127 # Outputs an `<feDiffuseLighting>` tag.
128 # See https://developer.mozilla.org/docs/Web/SVG/Element/feDiffuseLighting
1291 register_element def feDiffuseLighting(
130 **attributes,
131 &content
132 ) = nil
133 # Outputs an `<feDisplacementMap>` tag.
134 # See https://developer.mozilla.org/docs/Web/SVG/Element/feDisplacementMap
1351 register_element def feDisplacementMap(
136 **attributes,
137 &content
138 ) = nil
139 # Outputs an `<feDistantLight>` tag.
140 # See https://developer.mozilla.org/docs/Web/SVG/Element/feDistantLight
1411 register_element def feDistantLight(
142 **attributes,
143 &content
144 ) = nil
145 # Outputs an `<feDropShadow>` tag.
146 # See https://developer.mozilla.org/docs/Web/SVG/Element/feDropShadow
1471 register_element def feDropShadow(
148 **attributes,
149 &content
150 ) = nil
151 # Outputs an `<feFlood>` tag.
152 # See https://developer.mozilla.org/docs/Web/SVG/Element/feFlood
1531 register_element def feFlood(
154 **attributes,
155 &content
156 ) = nil
157 # Outputs an `<feFuncA>` tag.
158 # See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncA
1591 register_element def feFuncA(
160 **attributes,
161 &content
162 ) = nil
163 # Outputs an `<feFuncB>` tag.
164 # See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncB
1651 register_element def feFuncB(
166 **attributes,
167 &content
168 ) = nil
169 # Outputs an `<feFuncG>` tag.
170 # See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncG
1711 register_element def feFuncG(
172 **attributes,
173 &content
174 ) = nil
175 # Outputs an `<feFuncR>` tag.
176 # See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncR
1771 register_element def feFuncR(
178 **attributes,
179 &content
180 ) = nil
181 # Outputs an `<feGaussianBlur>` tag.
182 # See https://developer.mozilla.org/docs/Web/SVG/Element/feGaussianBlur
1831 register_element def feGaussianBlur(
184 **attributes,
185 &content
186 ) = nil
187 # Outputs an `<feImage>` tag.
188 # See https://developer.mozilla.org/docs/Web/SVG/Element/feImage
1891 register_element def feImage(
190 **attributes,
191 &content
192 ) = nil
193 # Outputs an `<feMerge>` tag.
194 # See https://developer.mozilla.org/docs/Web/SVG/Element/feMerge
1951 register_element def feMerge(
196 **attributes,
197 &content
198 ) = nil
199 # Outputs an `<feMergeNode>` tag.
200 # See https://developer.mozilla.org/docs/Web/SVG/Element/feMergeNode
2011 register_element def feMergeNode(
202 **attributes,
203 &content
204 ) = nil
205 # Outputs an `<feMorphology>` tag.
206 # See https://developer.mozilla.org/docs/Web/SVG/Element/feMorphology
2071 register_element def feMorphology(
208 **attributes,
209 &content
210 ) = nil
211 # Outputs an `<feOffset>` tag.
212 # See https://developer.mozilla.org/docs/Web/SVG/Element/feOffset
2131 register_element def feOffset(
214 **attributes,
215 &content
216 ) = nil
217 # Outputs an `<fePointLight>` tag.
218 # See https://developer.mozilla.org/docs/Web/SVG/Element/fePointLight
2191 register_element def fePointLight(
220 **attributes,
221 &content
222 ) = nil
223 # Outputs an `<feSpecularLighting>` tag.
224 # See https://developer.mozilla.org/docs/Web/SVG/Element/feSpecularLighting
2251 register_element def feSpecularLighting(
226 **attributes,
227 &content
228 ) = nil
229 # Outputs an `<feSpotLight>` tag.
230 # See https://developer.mozilla.org/docs/Web/SVG/Element/feSpotLight
2311 register_element def feSpotLight(
232 **attributes,
233 &content
234 ) = nil
235 # Outputs an `<feTile>` tag.
236 # See https://developer.mozilla.org/docs/Web/SVG/Element/feTile
2371 register_element def feTile(
238 **attributes,
239 &content
240 ) = nil
241 # Outputs an `<feTurbulence>` tag.
242 # See https://developer.mozilla.org/docs/Web/SVG/Element/feTurbulence
2431 register_element def feTurbulence(
244 **attributes,
245 &content
246 ) = nil
247 # Outputs a `<filter>` tag.
248 # See https://developer.mozilla.org/docs/Web/SVG/Element/filter
2491 register_element def filter(
250 **attributes,
251 &content
252 ) = nil
253 # Outputs a `<foreignObject>` tag.
254 # See https://developer.mozilla.org/docs/Web/SVG/Element/foreignObject
2551 register_element def foreignObject(
256 **attributes,
257 &content
258 ) = nil
259 # Outputs a `<g>` tag.
260 # See https://developer.mozilla.org/docs/Web/SVG/Element/g
2611 register_element def g(
262 **attributes,
263 &content
264 ) = nil
265 # Outputs an `<image>` tag.
266 # See https://developer.mozilla.org/docs/Web/SVG/Element/image
2671 register_element def image(
268 **attributes,
269 &content
270 ) = nil
271 # Outputs a `<line>` tag.
272 # See https://developer.mozilla.org/docs/Web/SVG/Element/line
2731 register_element def line(
274 **attributes,
275 &content
276 ) = nil
277 # Outputs a `<linearGradient>` tag.
278 # See https://developer.mozilla.org/docs/Web/SVG/Element/linearGradient
2791 register_element def linearGradient(
280 **attributes,
281 &content
282 ) = nil
283 # Outputs a `<marker>` tag.
284 # See https://developer.mozilla.org/docs/Web/SVG/Element/marker
2851 register_element def marker(
286 **attributes,
287 &content
288 ) = nil
289 # Outputs a `<mask>` tag.
290 # See https://developer.mozilla.org/docs/Web/SVG/Element/mask
2911 register_element def mask(
292 **attributes,
293 &content
294 ) = nil
295 # Outputs a `<metadata>` tag.
296 # See https://developer.mozilla.org/docs/Web/SVG/Element/metadata
2971 register_element def metadata(
298 **attributes,
299 &content
300 ) = nil
301 # Outputs an `<mpath>` tag.
302 # See https://developer.mozilla.org/docs/Web/SVG/Element/mpath
3031 register_element def mpath(
304 **attributes,
305 &content
306 ) = nil
307 # Outputs a `<path>` tag.
308 # See https://developer.mozilla.org/docs/Web/SVG/Element/path
3091 register_element def path(
310 **attributes,
311 &content
312 ) = nil
313 # Outputs a `<pattern>` tag.
314 # See https://developer.mozilla.org/docs/Web/SVG/Element/pattern
3151 register_element def pattern(
316 **attributes,
317 &content
318 ) = nil
319 # Outputs a `<polygon>` tag.
320 # See https://developer.mozilla.org/docs/Web/SVG/Element/polygon
3211 register_element def polygon(
322 **attributes,
323 &content
324 ) = nil
325 # Outputs a `<polyline>` tag.
326 # See https://developer.mozilla.org/docs/Web/SVG/Element/polyline
3271 register_element def polyline(
328 **attributes,
329 &content
330 ) = nil
331 # Outputs a `<radialGradient>` tag.
332 # See https://developer.mozilla.org/docs/Web/SVG/Element/radialGradient
3331 register_element def radialGradient(
334 **attributes,
335 &content
336 ) = nil
337 # Outputs a `<rect>` tag.
338 # See https://developer.mozilla.org/docs/Web/SVG/Element/rect
3391 register_element def rect(
340 **attributes,
341 &content
342 ) = nil
343 # Outputs a `<script>` tag.
344 # See https://developer.mozilla.org/docs/Web/SVG/Element/script
3451 register_element def script(
346 **attributes,
347 &content
348 ) = nil
349 # Outputs a `<set>` tag.
350 # See https://developer.mozilla.org/docs/Web/SVG/Element/set
3511 register_element def set(
352 **attributes,
353 &content
354 ) = nil
355 # Outputs a `<stop>` tag.
356 # See https://developer.mozilla.org/docs/Web/SVG/Element/stop
3571 register_element def stop(
358 **attributes,
359 &content
360 ) = nil
361 # Outputs a `<style>` tag.
362 # See https://developer.mozilla.org/docs/Web/SVG/Element/style
3631 register_element def style(
364 **attributes,
365 &content
366 ) = nil
367 # Outputs an `<svg>` tag.
368 # See https://developer.mozilla.org/docs/Web/SVG/Element/svg
3691 register_element def svg(
370 **attributes,
371 &content
372 ) = nil
373 # Outputs a `<switch>` tag.
374 # See https://developer.mozilla.org/docs/Web/SVG/Element/switch
3751 register_element def switch(
376 **attributes,
377 &content
378 ) = nil
379 # Outputs a `<symbol>` tag.
380 # See https://developer.mozilla.org/docs/Web/SVG/Element/symbol
3811 register_element def symbol(
382 **attributes,
383 &content
384 ) = nil
385 # Outputs a `<text>` tag.
386 # See https://developer.mozilla.org/docs/Web/SVG/Element/text
3871 register_element def text(
388 **attributes,
389 &content
390 ) = nil
391 # Outputs a `<textPath>` tag.
392 # See https://developer.mozilla.org/docs/Web/SVG/Element/textPath
3931 register_element def textPath(
394 **attributes,
395 &content
396 ) = nil
397 # Outputs a `<title>` tag.
398 # See https://developer.mozilla.org/docs/Web/SVG/Element/title
3991 register_element def title(
400 **attributes,
401 &content
402 ) = nil
403 # Outputs a `<tspan>` tag.
404 # See https://developer.mozilla.org/docs/Web/SVG/Element/tspan
4051 register_element def tspan(
406 **attributes,
407 &content
408 ) = nil
409 # Outputs a `<use>` tag.
410 # See https://developer.mozilla.org/docs/Web/SVG/Element/use
4111 register_element def use(
412 **attributes,
413 &content
414 ) = nil
415 # Outputs a `<view>` tag.
416 # See https://developer.mozilla.org/docs/Web/SVG/Element/view
4171 register_element def view(
418 **attributes,
419 &content
420 ) = nil
421end