phlex 2.0.0.beta1 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -11
- data/lib/phlex/context.rb +3 -2
- data/lib/phlex/csv.rb +4 -11
- data/lib/phlex/error.rb +1 -0
- data/lib/phlex/fifo.rb +1 -0
- data/lib/phlex/helpers.rb +3 -1
- data/lib/phlex/html/standard_elements.rb +1033 -722
- data/lib/phlex/html/void_elements.rb +94 -56
- data/lib/phlex/html.rb +1 -7
- data/lib/phlex/kit.rb +23 -11
- data/lib/phlex/{elements.rb → sgml/elements.rb} +18 -44
- data/lib/phlex/sgml.rb +221 -263
- data/lib/phlex/svg/standard_elements.rb +480 -449
- data/lib/phlex/svg.rb +0 -3
- data/lib/phlex/{black_hole.rb → vanish.rb} +1 -1
- data/lib/phlex/version.rb +1 -1
- data/lib/phlex.rb +2 -5
- metadata +5 -7
- data/lib/phlex/deferred_render.rb +0 -29
- data/lib/phlex/element_clobbering_guard.rb +0 -16
@@ -1,453 +1,484 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Phlex::SVG::StandardElements
|
4
|
-
extend Phlex::Elements
|
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
|
-
register_element
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
#
|
66
|
-
#
|
67
|
-
register_element
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
#
|
73
|
-
#
|
74
|
-
register_element
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
#
|
80
|
-
#
|
81
|
-
register_element
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
#
|
87
|
-
#
|
88
|
-
register_element
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
#
|
94
|
-
#
|
95
|
-
register_element
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
#
|
101
|
-
#
|
102
|
-
register_element
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
#
|
108
|
-
#
|
109
|
-
register_element
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
#
|
115
|
-
#
|
116
|
-
register_element
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
#
|
122
|
-
#
|
123
|
-
register_element
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
#
|
129
|
-
#
|
130
|
-
register_element
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
#
|
136
|
-
#
|
137
|
-
register_element
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
#
|
143
|
-
#
|
144
|
-
register_element
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
#
|
150
|
-
#
|
151
|
-
register_element
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
#
|
157
|
-
#
|
158
|
-
register_element
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
#
|
164
|
-
#
|
165
|
-
register_element
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
#
|
171
|
-
#
|
172
|
-
register_element
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
#
|
178
|
-
#
|
179
|
-
register_element
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
#
|
185
|
-
#
|
186
|
-
register_element
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
#
|
192
|
-
#
|
193
|
-
register_element
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
#
|
199
|
-
#
|
200
|
-
register_element
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
#
|
206
|
-
#
|
207
|
-
register_element
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
#
|
213
|
-
#
|
214
|
-
register_element
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
#
|
220
|
-
#
|
221
|
-
register_element
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
#
|
227
|
-
#
|
228
|
-
register_element
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
#
|
234
|
-
#
|
235
|
-
register_element
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
#
|
241
|
-
#
|
242
|
-
register_element
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
#
|
248
|
-
#
|
249
|
-
register_element
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
#
|
255
|
-
#
|
256
|
-
register_element
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
#
|
262
|
-
#
|
263
|
-
register_element
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
#
|
269
|
-
#
|
270
|
-
register_element
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
#
|
276
|
-
#
|
277
|
-
register_element
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
#
|
283
|
-
#
|
284
|
-
register_element
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
#
|
290
|
-
#
|
291
|
-
register_element
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
#
|
297
|
-
#
|
298
|
-
register_element
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
#
|
304
|
-
#
|
305
|
-
register_element
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
#
|
311
|
-
#
|
312
|
-
register_element
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
#
|
318
|
-
#
|
319
|
-
register_element
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
#
|
325
|
-
#
|
326
|
-
register_element
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
#
|
332
|
-
#
|
333
|
-
register_element
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
#
|
339
|
-
#
|
340
|
-
register_element
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
#
|
346
|
-
#
|
347
|
-
register_element
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
#
|
353
|
-
#
|
354
|
-
register_element
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
#
|
360
|
-
#
|
361
|
-
register_element
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
#
|
367
|
-
#
|
368
|
-
register_element
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
#
|
374
|
-
#
|
375
|
-
register_element
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
#
|
381
|
-
#
|
382
|
-
register_element
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
#
|
388
|
-
#
|
389
|
-
register_element
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
#
|
395
|
-
#
|
396
|
-
register_element
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
#
|
402
|
-
#
|
403
|
-
register_element
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
#
|
409
|
-
#
|
410
|
-
register_element
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
#
|
416
|
-
#
|
417
|
-
register_element
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
#
|
423
|
-
#
|
424
|
-
register_element
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
#
|
430
|
-
#
|
431
|
-
register_element
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
#
|
437
|
-
#
|
438
|
-
register_element
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
#
|
444
|
-
#
|
445
|
-
register_element
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
#
|
451
|
-
#
|
452
|
-
register_element
|
4
|
+
extend Phlex::SGML::Elements
|
5
|
+
|
6
|
+
# Outputs an `<a>` tag.
|
7
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/a
|
8
|
+
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
|
+
|
21
|
+
# Outputs an `<animate>` tag.
|
22
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/animate
|
23
|
+
register_element def animate(
|
24
|
+
attributeName: nil,
|
25
|
+
values: nil,
|
26
|
+
dur: nil,
|
27
|
+
repeatCount: nil,
|
28
|
+
**attributes,
|
29
|
+
&content
|
30
|
+
) = nil
|
31
|
+
|
32
|
+
# Outputs an `<animateMotion>` tag.
|
33
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/animateMotion
|
34
|
+
register_element def animateMotion(
|
35
|
+
keyPoints: nil,
|
36
|
+
path: nil,
|
37
|
+
rotate: nil,
|
38
|
+
begin: nil,
|
39
|
+
dur: nil,
|
40
|
+
end: nil,
|
41
|
+
repeatCount: nil,
|
42
|
+
repeatDur: nil,
|
43
|
+
fill: nil,
|
44
|
+
calcMode: nil,
|
45
|
+
values: nil,
|
46
|
+
keyTimes: nil,
|
47
|
+
keySplines: nil,
|
48
|
+
from: nil,
|
49
|
+
to: nil,
|
50
|
+
by: nil,
|
51
|
+
attributeName: nil,
|
52
|
+
additive: nil,
|
53
|
+
accumulate: nil,
|
54
|
+
**attributes,
|
55
|
+
&content
|
56
|
+
) = nil
|
57
|
+
|
58
|
+
# Outputs an `<animateTransform>` tag.
|
59
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/animateTransform
|
60
|
+
register_element def animateTransform(
|
61
|
+
**attributes,
|
62
|
+
&content
|
63
|
+
) = nil
|
64
|
+
|
65
|
+
# Outputs a `<circle>` tag.
|
66
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/circle
|
67
|
+
register_element def circle(
|
68
|
+
**attributes,
|
69
|
+
&content
|
70
|
+
) = nil
|
71
|
+
|
72
|
+
# Outputs a `<clipPath>` tag.
|
73
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/clipPath
|
74
|
+
register_element def clipPath(
|
75
|
+
**attributes,
|
76
|
+
&content
|
77
|
+
) = nil
|
78
|
+
|
79
|
+
# Outputs a `<defs>` tag.
|
80
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/defs
|
81
|
+
register_element def defs(
|
82
|
+
**attributes,
|
83
|
+
&content
|
84
|
+
) = nil
|
85
|
+
|
86
|
+
# Outputs a `<desc>` tag.
|
87
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/desc
|
88
|
+
register_element def desc(
|
89
|
+
**attributes,
|
90
|
+
&content
|
91
|
+
) = nil
|
92
|
+
|
93
|
+
# Outputs a `<discard>` tag.
|
94
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/discard
|
95
|
+
register_element def discard(
|
96
|
+
**attributes,
|
97
|
+
&content
|
98
|
+
) = nil
|
99
|
+
|
100
|
+
# Outputs an `<ellipse>` tag.
|
101
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/ellipse
|
102
|
+
register_element def ellipse(
|
103
|
+
**attributes,
|
104
|
+
&content
|
105
|
+
) = nil
|
106
|
+
|
107
|
+
# Outputs an `<feBlend>` tag.
|
108
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feBlend
|
109
|
+
register_element def feBlend(
|
110
|
+
**attributes,
|
111
|
+
&content
|
112
|
+
) = nil
|
113
|
+
|
114
|
+
# Outputs an `<feColorMatrix>` tag.
|
115
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feColorMatrix
|
116
|
+
register_element def feColorMatrix(
|
117
|
+
**attributes,
|
118
|
+
&content
|
119
|
+
) = nil
|
120
|
+
|
121
|
+
# Outputs an `<feComponentTransfer>` tag.
|
122
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feComponentTransfer
|
123
|
+
register_element def feComponentTransfer(
|
124
|
+
**attributes,
|
125
|
+
&content
|
126
|
+
) = nil
|
127
|
+
|
128
|
+
# Outputs an `<feComposite>` tag.
|
129
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feComposite
|
130
|
+
register_element def feComposite(
|
131
|
+
**attributes,
|
132
|
+
&content
|
133
|
+
) = nil
|
134
|
+
|
135
|
+
# Outputs an `<feConvolveMatrix>` tag.
|
136
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feConvolveMatrix
|
137
|
+
register_element def feConvolveMatrix(
|
138
|
+
**attributes,
|
139
|
+
&content
|
140
|
+
) = nil
|
141
|
+
|
142
|
+
# Outputs an `<feDiffuseLighting>` tag.
|
143
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feDiffuseLighting
|
144
|
+
register_element def feDiffuseLighting(
|
145
|
+
**attributes,
|
146
|
+
&content
|
147
|
+
) = nil
|
148
|
+
|
149
|
+
# Outputs an `<feDisplacementMap>` tag.
|
150
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feDisplacementMap
|
151
|
+
register_element def feDisplacementMap(
|
152
|
+
**attributes,
|
153
|
+
&content
|
154
|
+
) = nil
|
155
|
+
|
156
|
+
# Outputs an `<feDistantLight>` tag.
|
157
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feDistantLight
|
158
|
+
register_element def feDistantLight(
|
159
|
+
**attributes,
|
160
|
+
&content
|
161
|
+
) = nil
|
162
|
+
|
163
|
+
# Outputs an `<feDropShadow>` tag.
|
164
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feDropShadow
|
165
|
+
register_element def feDropShadow(
|
166
|
+
**attributes,
|
167
|
+
&content
|
168
|
+
) = nil
|
169
|
+
|
170
|
+
# Outputs an `<feFlood>` tag.
|
171
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feFlood
|
172
|
+
register_element def feFlood(
|
173
|
+
**attributes,
|
174
|
+
&content
|
175
|
+
) = nil
|
176
|
+
|
177
|
+
# Outputs an `<feFuncA>` tag.
|
178
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncA
|
179
|
+
register_element def feFuncA(
|
180
|
+
**attributes,
|
181
|
+
&content
|
182
|
+
) = nil
|
183
|
+
|
184
|
+
# Outputs an `<feFuncB>` tag.
|
185
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncB
|
186
|
+
register_element def feFuncB(
|
187
|
+
**attributes,
|
188
|
+
&content
|
189
|
+
) = nil
|
190
|
+
|
191
|
+
# Outputs an `<feFuncG>` tag.
|
192
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncG
|
193
|
+
register_element def feFuncG(
|
194
|
+
**attributes,
|
195
|
+
&content
|
196
|
+
) = nil
|
197
|
+
|
198
|
+
# Outputs an `<feFuncR>` tag.
|
199
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feFuncR
|
200
|
+
register_element def feFuncR(
|
201
|
+
**attributes,
|
202
|
+
&content
|
203
|
+
) = nil
|
204
|
+
|
205
|
+
# Outputs an `<feGaussianBlur>` tag.
|
206
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feGaussianBlur
|
207
|
+
register_element def feGaussianBlur(
|
208
|
+
**attributes,
|
209
|
+
&content
|
210
|
+
) = nil
|
211
|
+
|
212
|
+
# Outputs an `<feImage>` tag.
|
213
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feImage
|
214
|
+
register_element def feImage(
|
215
|
+
**attributes,
|
216
|
+
&content
|
217
|
+
) = nil
|
218
|
+
|
219
|
+
# Outputs an `<feMerge>` tag.
|
220
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feMerge
|
221
|
+
register_element def feMerge(
|
222
|
+
**attributes,
|
223
|
+
&content
|
224
|
+
) = nil
|
225
|
+
|
226
|
+
# Outputs an `<feMergeNode>` tag.
|
227
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feMergeNode
|
228
|
+
register_element def feMergeNode(
|
229
|
+
**attributes,
|
230
|
+
&content
|
231
|
+
) = nil
|
232
|
+
|
233
|
+
# Outputs an `<feMorphology>` tag.
|
234
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feMorphology
|
235
|
+
register_element def feMorphology(
|
236
|
+
**attributes,
|
237
|
+
&content
|
238
|
+
) = nil
|
239
|
+
|
240
|
+
# Outputs an `<feOffset>` tag.
|
241
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feOffset
|
242
|
+
register_element def feOffset(
|
243
|
+
**attributes,
|
244
|
+
&content
|
245
|
+
) = nil
|
246
|
+
|
247
|
+
# Outputs an `<fePointLight>` tag.
|
248
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/fePointLight
|
249
|
+
register_element def fePointLight(
|
250
|
+
**attributes,
|
251
|
+
&content
|
252
|
+
) = nil
|
253
|
+
|
254
|
+
# Outputs an `<feSpecularLighting>` tag.
|
255
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feSpecularLighting
|
256
|
+
register_element def feSpecularLighting(
|
257
|
+
**attributes,
|
258
|
+
&content
|
259
|
+
) = nil
|
260
|
+
|
261
|
+
# Outputs an `<feSpotLight>` tag.
|
262
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feSpotLight
|
263
|
+
register_element def feSpotLight(
|
264
|
+
**attributes,
|
265
|
+
&content
|
266
|
+
) = nil
|
267
|
+
|
268
|
+
# Outputs an `<feTile>` tag.
|
269
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feTile
|
270
|
+
register_element def feTile(
|
271
|
+
**attributes,
|
272
|
+
&content
|
273
|
+
) = nil
|
274
|
+
|
275
|
+
# Outputs an `<feTurbulence>` tag.
|
276
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/feTurbulence
|
277
|
+
register_element def feTurbulence(
|
278
|
+
**attributes,
|
279
|
+
&content
|
280
|
+
) = nil
|
281
|
+
|
282
|
+
# Outputs a `<filter>` tag.
|
283
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/filter
|
284
|
+
register_element def filter(
|
285
|
+
**attributes,
|
286
|
+
&content
|
287
|
+
) = nil
|
288
|
+
|
289
|
+
# Outputs a `<foreignObject>` tag.
|
290
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/foreignObject
|
291
|
+
register_element def foreignObject(
|
292
|
+
**attributes,
|
293
|
+
&content
|
294
|
+
) = nil
|
295
|
+
|
296
|
+
# Outputs a `<g>` tag.
|
297
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/g
|
298
|
+
register_element def g(
|
299
|
+
**attributes,
|
300
|
+
&content
|
301
|
+
) = nil
|
302
|
+
|
303
|
+
# Outputs an `<image>` tag.
|
304
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/image
|
305
|
+
register_element def image(
|
306
|
+
**attributes,
|
307
|
+
&content
|
308
|
+
) = nil
|
309
|
+
|
310
|
+
# Outputs a `<line>` tag.
|
311
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/line
|
312
|
+
register_element def line(
|
313
|
+
**attributes,
|
314
|
+
&content
|
315
|
+
) = nil
|
316
|
+
|
317
|
+
# Outputs a `<linearGradient>` tag.
|
318
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/linearGradient
|
319
|
+
register_element def linearGradient(
|
320
|
+
**attributes,
|
321
|
+
&content
|
322
|
+
) = nil
|
323
|
+
|
324
|
+
# Outputs a `<marker>` tag.
|
325
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/marker
|
326
|
+
register_element def marker(
|
327
|
+
**attributes,
|
328
|
+
&content
|
329
|
+
) = nil
|
330
|
+
|
331
|
+
# Outputs a `<mask>` tag.
|
332
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/mask
|
333
|
+
register_element def mask(
|
334
|
+
**attributes,
|
335
|
+
&content
|
336
|
+
) = nil
|
337
|
+
|
338
|
+
# Outputs a `<metadata>` tag.
|
339
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/metadata
|
340
|
+
register_element def metadata(
|
341
|
+
**attributes,
|
342
|
+
&content
|
343
|
+
) = nil
|
344
|
+
|
345
|
+
# Outputs an `<mpath>` tag.
|
346
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/mpath
|
347
|
+
register_element def mpath(
|
348
|
+
**attributes,
|
349
|
+
&content
|
350
|
+
) = nil
|
351
|
+
|
352
|
+
# Outputs a `<path>` tag.
|
353
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/path
|
354
|
+
register_element def path(
|
355
|
+
**attributes,
|
356
|
+
&content
|
357
|
+
) = nil
|
358
|
+
|
359
|
+
# Outputs a `<pattern>` tag.
|
360
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/pattern
|
361
|
+
register_element def pattern(
|
362
|
+
**attributes,
|
363
|
+
&content
|
364
|
+
) = nil
|
365
|
+
|
366
|
+
# Outputs a `<polygon>` tag.
|
367
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/polygon
|
368
|
+
register_element def polygon(
|
369
|
+
**attributes,
|
370
|
+
&content
|
371
|
+
) = nil
|
372
|
+
|
373
|
+
# Outputs a `<polyline>` tag.
|
374
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/polyline
|
375
|
+
register_element def polyline(
|
376
|
+
**attributes,
|
377
|
+
&content
|
378
|
+
) = nil
|
379
|
+
|
380
|
+
# Outputs a `<radialGradient>` tag.
|
381
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/radialGradient
|
382
|
+
register_element def radialGradient(
|
383
|
+
**attributes,
|
384
|
+
&content
|
385
|
+
) = nil
|
386
|
+
|
387
|
+
# Outputs a `<rect>` tag.
|
388
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/rect
|
389
|
+
register_element def rect(
|
390
|
+
**attributes,
|
391
|
+
&content
|
392
|
+
) = nil
|
393
|
+
|
394
|
+
# Outputs a `<script>` tag.
|
395
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/script
|
396
|
+
register_element def script(
|
397
|
+
**attributes,
|
398
|
+
&content
|
399
|
+
) = nil
|
400
|
+
|
401
|
+
# Outputs a `<set>` tag.
|
402
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/set
|
403
|
+
register_element def set(
|
404
|
+
**attributes,
|
405
|
+
&content
|
406
|
+
) = nil
|
407
|
+
|
408
|
+
# Outputs a `<stop>` tag.
|
409
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/stop
|
410
|
+
register_element def stop(
|
411
|
+
**attributes,
|
412
|
+
&content
|
413
|
+
) = nil
|
414
|
+
|
415
|
+
# Outputs a `<style>` tag.
|
416
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/style
|
417
|
+
register_element def style(
|
418
|
+
**attributes,
|
419
|
+
&content
|
420
|
+
) = nil
|
421
|
+
|
422
|
+
# Outputs an `<svg>` tag.
|
423
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/svg
|
424
|
+
register_element def svg(
|
425
|
+
**attributes,
|
426
|
+
&content
|
427
|
+
) = nil
|
428
|
+
|
429
|
+
# Outputs a `<switch>` tag.
|
430
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/switch
|
431
|
+
register_element def switch(
|
432
|
+
**attributes,
|
433
|
+
&content
|
434
|
+
) = nil
|
435
|
+
|
436
|
+
# Outputs a `<symbol>` tag.
|
437
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/symbol
|
438
|
+
register_element def symbol(
|
439
|
+
**attributes,
|
440
|
+
&content
|
441
|
+
) = nil
|
442
|
+
|
443
|
+
# Outputs a `<text>` tag.
|
444
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/text
|
445
|
+
register_element def text(
|
446
|
+
**attributes,
|
447
|
+
&content
|
448
|
+
) = nil
|
449
|
+
|
450
|
+
# Outputs a `<textPath>` tag.
|
451
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/textPath
|
452
|
+
register_element def textPath(
|
453
|
+
**attributes,
|
454
|
+
&content
|
455
|
+
) = nil
|
456
|
+
|
457
|
+
# Outputs a `<title>` tag.
|
458
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/title
|
459
|
+
register_element def title(
|
460
|
+
**attributes,
|
461
|
+
&content
|
462
|
+
) = nil
|
463
|
+
|
464
|
+
# Outputs a `<tspan>` tag.
|
465
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/tspan
|
466
|
+
register_element def tspan(
|
467
|
+
**attributes,
|
468
|
+
&content
|
469
|
+
) = nil
|
470
|
+
|
471
|
+
# Outputs a `<use>` tag.
|
472
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/use
|
473
|
+
register_element def use(
|
474
|
+
**attributes,
|
475
|
+
&content
|
476
|
+
) = nil
|
477
|
+
|
478
|
+
# Outputs a `<view>` tag.
|
479
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/view
|
480
|
+
register_element def view(
|
481
|
+
**attributes,
|
482
|
+
&content
|
483
|
+
) = nil
|
453
484
|
end
|