phlex 2.0.0.beta2 → 2.0.0.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -11
- data/lib/phlex/csv.rb +4 -11
- data/lib/phlex/error.rb +1 -0
- data/lib/phlex/fifo.rb +11 -3
- data/lib/phlex/fifo_cache_store.rb +49 -0
- data/lib/phlex/helpers.rb +2 -2
- data/lib/phlex/html/standard_elements.rb +932 -722
- data/lib/phlex/html/void_elements.rb +93 -66
- data/lib/phlex/html.rb +4 -10
- data/lib/phlex/kit.rb +39 -22
- data/lib/phlex/null_cache_store.rb +9 -0
- data/lib/phlex/sgml/elements.rb +112 -0
- data/lib/phlex/sgml/state.rb +118 -0
- data/lib/phlex/sgml.rb +326 -305
- data/lib/phlex/svg/standard_elements.rb +417 -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 +17 -9
- metadata +9 -12
- data/lib/phlex/context.rb +0 -59
- data/lib/phlex/deferred_render.rb +0 -29
- data/lib/phlex/element_clobbering_guard.rb +0 -18
- data/lib/phlex/elements.rb +0 -172
@@ -1,453 +1,421 @@
|
|
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
|
-
register_element
|
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
|
-
register_element
|
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
|
-
register_element
|
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
|
-
register_element
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
#
|
170
|
-
#
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
#
|
176
|
-
#
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
#
|
182
|
-
#
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
#
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
#
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
#
|
206
|
-
#
|
207
|
-
register_element
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
#
|
212
|
-
#
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
#
|
218
|
-
#
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
#
|
224
|
-
#
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
#
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
#
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
#
|
248
|
-
#
|
249
|
-
register_element
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
#
|
254
|
-
#
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
#
|
260
|
-
#
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
#
|
266
|
-
#
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
#
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
#
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
#
|
290
|
-
#
|
291
|
-
register_element
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
#
|
296
|
-
#
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
#
|
302
|
-
#
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
#
|
308
|
-
#
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
#
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
#
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
#
|
332
|
-
#
|
333
|
-
register_element
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
#
|
338
|
-
#
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
#
|
344
|
-
#
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
#
|
350
|
-
#
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
#
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
#
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
#
|
374
|
-
#
|
375
|
-
register_element
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
#
|
380
|
-
#
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
#
|
386
|
-
#
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
#
|
392
|
-
#
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
#
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
#
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
#
|
416
|
-
#
|
417
|
-
register_element
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
# @return [nil]
|
422
|
-
# @yieldparam component [self]
|
423
|
-
# @see https://developer.mozilla.org/docs/Web/SVG/Element/textPath
|
424
|
-
register_element :textPath
|
425
|
-
|
426
|
-
# @!method title(**attributes, &content)
|
427
|
-
# Outputs a `<title>` tag.
|
428
|
-
# @return [nil]
|
429
|
-
# @yieldparam component [self]
|
430
|
-
# @see https://developer.mozilla.org/docs/Web/SVG/Element/title
|
431
|
-
register_element :title
|
432
|
-
|
433
|
-
# @!method tspan(**attributes, &content)
|
434
|
-
# Outputs a `<tspan>` tag.
|
435
|
-
# @return [nil]
|
436
|
-
# @yieldparam component [self]
|
437
|
-
# @see https://developer.mozilla.org/docs/Web/SVG/Element/tspan
|
438
|
-
register_element :tspan
|
439
|
-
|
440
|
-
# @!method use(**attributes, &content)
|
441
|
-
# Outputs a `<use>` tag.
|
442
|
-
# @return [nil]
|
443
|
-
# @yieldparam component [self]
|
444
|
-
# @see https://developer.mozilla.org/docs/Web/SVG/Element/use
|
445
|
-
register_element :use
|
446
|
-
|
447
|
-
# @!method view(**attributes, &content)
|
448
|
-
# Outputs a `<view>` tag.
|
449
|
-
# @return [nil]
|
450
|
-
# @yieldparam component [self]
|
451
|
-
# @see https://developer.mozilla.org/docs/Web/SVG/Element/view
|
452
|
-
register_element :view
|
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
|
+
# Outputs an `<animate>` tag.
|
21
|
+
# See https://developer.mozilla.org/docs/Web/SVG/Element/animate
|
22
|
+
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
|
32
|
+
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
|
57
|
+
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
|
63
|
+
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
|
69
|
+
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
|
75
|
+
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
|
81
|
+
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
|
87
|
+
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
|
93
|
+
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
|
99
|
+
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
|
105
|
+
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
|
111
|
+
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
|
117
|
+
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
|
123
|
+
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
|
129
|
+
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
|
135
|
+
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
|
141
|
+
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
|
147
|
+
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
|
153
|
+
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
|
159
|
+
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
|
165
|
+
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
|
171
|
+
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
|
177
|
+
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
|
183
|
+
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
|
189
|
+
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
|
195
|
+
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
|
201
|
+
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
|
207
|
+
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
|
213
|
+
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
|
219
|
+
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
|
225
|
+
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
|
231
|
+
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
|
237
|
+
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
|
243
|
+
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
|
249
|
+
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
|
255
|
+
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
|
261
|
+
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
|
267
|
+
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
|
273
|
+
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
|
279
|
+
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
|
285
|
+
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
|
291
|
+
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
|
297
|
+
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
|
303
|
+
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
|
309
|
+
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
|
315
|
+
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
|
321
|
+
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
|
327
|
+
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
|
333
|
+
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
|
339
|
+
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
|
345
|
+
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
|
351
|
+
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
|
357
|
+
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
|
363
|
+
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
|
369
|
+
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
|
375
|
+
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
|
381
|
+
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
|
387
|
+
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
|
393
|
+
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
|
399
|
+
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
|
405
|
+
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
|
411
|
+
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
|
417
|
+
register_element def view(
|
418
|
+
**attributes,
|
419
|
+
&content
|
420
|
+
) = nil
|
453
421
|
end
|