@pfern/elements 0.1.4 → 0.1.6
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.
- package/elements.js +11 -185
- package/package.json +6 -3
- package/types/elements.d.ts +359 -346
package/types/elements.d.ts
CHANGED
|
@@ -13,6 +13,10 @@ export const DEBUG: boolean;
|
|
|
13
13
|
export function render(vtree: any, container?: any): void;
|
|
14
14
|
export function component(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
15
15
|
/**
|
|
16
|
+
* @typedef {Record<string, any>} Props
|
|
17
|
+
* @typedef {any[] | string | number | boolean | null | undefined | Node} Child
|
|
18
|
+
* @typedef {any[]} VNode
|
|
19
|
+
*
|
|
16
20
|
* A map of supported HTML and SVG element helpers.
|
|
17
21
|
*
|
|
18
22
|
* Each helper is a function that accepts optional props as first argument
|
|
@@ -33,7 +37,10 @@ export function component(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
|
33
37
|
* The following helpers are included:
|
|
34
38
|
* `div`, `span`, `button`, `svg`, `circle`, etc.
|
|
35
39
|
*
|
|
36
|
-
* @
|
|
40
|
+
* @callback ElementHelper
|
|
41
|
+
* @param {Props | Child} [propsOrChild]
|
|
42
|
+
* @param {...Child} children
|
|
43
|
+
* @returns {VNode}
|
|
37
44
|
*
|
|
38
45
|
* @type {Record<string, ElementHelper>}
|
|
39
46
|
*/
|
|
@@ -43,1320 +50,1322 @@ export const elements: Record<string, ElementHelper>;
|
|
|
43
50
|
* Represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
|
|
44
51
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/html
|
|
45
52
|
*
|
|
46
|
-
* @type {
|
|
53
|
+
* @type {ElementHelper}
|
|
47
54
|
*/
|
|
48
|
-
export const html:
|
|
55
|
+
export const html: ElementHelper;
|
|
49
56
|
/**
|
|
50
57
|
* <base>
|
|
51
58
|
* Specifies the base URL to use for all relative URLs in a document. There can be only one such element in a document.
|
|
52
59
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/base
|
|
53
60
|
*
|
|
54
|
-
* @type {
|
|
61
|
+
* @type {ElementHelper}
|
|
55
62
|
*/
|
|
56
|
-
export const base:
|
|
63
|
+
export const base: ElementHelper;
|
|
57
64
|
/**
|
|
58
65
|
* <head>
|
|
59
66
|
* Contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
|
|
60
67
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/head
|
|
61
68
|
*
|
|
62
|
-
* @type {
|
|
69
|
+
* @type {ElementHelper}
|
|
63
70
|
*/
|
|
64
|
-
export const head:
|
|
71
|
+
export const head: ElementHelper;
|
|
65
72
|
/**
|
|
66
73
|
* <link>
|
|
67
74
|
* Specifies relationships between the current document and an external resource. This element is most commonly used to link to CSS but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
|
|
68
75
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link
|
|
69
76
|
*
|
|
70
|
-
* @type {
|
|
77
|
+
* @type {ElementHelper}
|
|
71
78
|
*/
|
|
72
|
-
export const link:
|
|
79
|
+
export const link: ElementHelper;
|
|
73
80
|
/**
|
|
74
81
|
* <meta>
|
|
75
82
|
* Represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> and <title>.
|
|
76
83
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta
|
|
77
84
|
*
|
|
78
|
-
* @type {
|
|
85
|
+
* @type {ElementHelper}
|
|
79
86
|
*/
|
|
80
|
-
export const meta:
|
|
87
|
+
export const meta: ElementHelper;
|
|
81
88
|
/**
|
|
82
89
|
* <style>
|
|
83
90
|
* Contains style information for a document or part of a document. It contains CSS, which is applied to the contents of the document containing this element.
|
|
84
91
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/style
|
|
85
92
|
*
|
|
86
|
-
* @type {
|
|
93
|
+
* @type {ElementHelper}
|
|
87
94
|
*/
|
|
88
|
-
export const style:
|
|
95
|
+
export const style: ElementHelper;
|
|
89
96
|
/**
|
|
90
97
|
* <title>
|
|
91
98
|
* Defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text; HTML tags within the element, if any, are also treated as plain text.
|
|
92
99
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/title
|
|
93
100
|
*
|
|
94
|
-
* @type {
|
|
101
|
+
* @type {ElementHelper}
|
|
95
102
|
*/
|
|
96
|
-
export const title:
|
|
103
|
+
export const title: ElementHelper;
|
|
97
104
|
/**
|
|
98
105
|
* <body>
|
|
99
106
|
* Represents the content of an HTML document. There can be only one such element in a document.
|
|
100
107
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/body
|
|
101
108
|
*
|
|
102
|
-
* @type {
|
|
109
|
+
* @type {ElementHelper}
|
|
103
110
|
*/
|
|
104
|
-
export const body:
|
|
111
|
+
export const body: ElementHelper;
|
|
105
112
|
/**
|
|
106
113
|
* <address>
|
|
107
114
|
* Indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
|
|
108
115
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/address
|
|
109
116
|
*
|
|
110
|
-
* @type {
|
|
117
|
+
* @type {ElementHelper}
|
|
111
118
|
*/
|
|
112
|
-
export const address:
|
|
119
|
+
export const address: ElementHelper;
|
|
113
120
|
/**
|
|
114
121
|
* <article>
|
|
115
122
|
* Represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include a forum post, a magazine or newspaper article, a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
|
|
116
123
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/article
|
|
117
124
|
*
|
|
118
|
-
* @type {
|
|
125
|
+
* @type {ElementHelper}
|
|
119
126
|
*/
|
|
120
|
-
export const article:
|
|
127
|
+
export const article: ElementHelper;
|
|
121
128
|
/**
|
|
122
129
|
* <aside>
|
|
123
130
|
* Represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes.
|
|
124
131
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/aside
|
|
125
132
|
*
|
|
126
|
-
* @type {
|
|
133
|
+
* @type {ElementHelper}
|
|
127
134
|
*/
|
|
128
|
-
export const aside:
|
|
135
|
+
export const aside: ElementHelper;
|
|
129
136
|
/**
|
|
130
137
|
* <footer>
|
|
131
138
|
* Represents a footer for its nearest ancestor sectioning content or sectioning root element. A <footer> typically contains information about the author of the section, copyright data, or links to related documents.
|
|
132
139
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/footer
|
|
133
140
|
*
|
|
134
|
-
* @type {
|
|
141
|
+
* @type {ElementHelper}
|
|
135
142
|
*/
|
|
136
|
-
export const footer:
|
|
143
|
+
export const footer: ElementHelper;
|
|
137
144
|
/**
|
|
138
145
|
* <header>
|
|
139
146
|
* Represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.
|
|
140
147
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/header
|
|
141
148
|
*
|
|
142
|
-
* @type {
|
|
149
|
+
* @type {ElementHelper}
|
|
143
150
|
*/
|
|
144
|
-
export const header:
|
|
151
|
+
export const header: ElementHelper;
|
|
145
152
|
/**
|
|
146
153
|
* <h1>
|
|
147
154
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
148
155
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h1
|
|
149
156
|
*
|
|
150
|
-
* @type {
|
|
157
|
+
* @type {ElementHelper}
|
|
151
158
|
*/
|
|
152
|
-
export const h1:
|
|
159
|
+
export const h1: ElementHelper;
|
|
153
160
|
/**
|
|
154
161
|
* <h2>
|
|
155
162
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
156
163
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h2
|
|
157
164
|
*
|
|
158
|
-
* @type {
|
|
165
|
+
* @type {ElementHelper}
|
|
159
166
|
*/
|
|
160
|
-
export const h2:
|
|
167
|
+
export const h2: ElementHelper;
|
|
161
168
|
/**
|
|
162
169
|
* <h3>
|
|
163
170
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
164
171
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h3
|
|
165
172
|
*
|
|
166
|
-
* @type {
|
|
173
|
+
* @type {ElementHelper}
|
|
167
174
|
*/
|
|
168
|
-
export const h3:
|
|
175
|
+
export const h3: ElementHelper;
|
|
169
176
|
/**
|
|
170
177
|
* <h4>
|
|
171
178
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
172
179
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h4
|
|
173
180
|
*
|
|
174
|
-
* @type {
|
|
181
|
+
* @type {ElementHelper}
|
|
175
182
|
*/
|
|
176
|
-
export const h4:
|
|
183
|
+
export const h4: ElementHelper;
|
|
177
184
|
/**
|
|
178
185
|
* <h5>
|
|
179
186
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
180
187
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h5
|
|
181
188
|
*
|
|
182
|
-
* @type {
|
|
189
|
+
* @type {ElementHelper}
|
|
183
190
|
*/
|
|
184
|
-
export const h5:
|
|
191
|
+
export const h5: ElementHelper;
|
|
185
192
|
/**
|
|
186
193
|
* <h6>
|
|
187
194
|
* There are six levels of section headings. <h1> is the highest section level and <h6> is the lowest.
|
|
188
195
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/h6
|
|
189
196
|
*
|
|
190
|
-
* @type {
|
|
197
|
+
* @type {ElementHelper}
|
|
191
198
|
*/
|
|
192
|
-
export const h6:
|
|
199
|
+
export const h6: ElementHelper;
|
|
193
200
|
/**
|
|
194
201
|
* <hgroup>
|
|
195
202
|
* Represents a heading grouped with any secondary content, such as subheadings, an alternative title, or a tagline.
|
|
196
203
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hgroup
|
|
197
204
|
*
|
|
198
|
-
* @type {
|
|
205
|
+
* @type {ElementHelper}
|
|
199
206
|
*/
|
|
200
|
-
export const hgroup:
|
|
207
|
+
export const hgroup: ElementHelper;
|
|
201
208
|
/**
|
|
202
209
|
* <main>
|
|
203
210
|
* Represents the dominant content of the body of a document. The main content area consists of content that is directly related to or expands upon the central topic of a document, or the central functionality of an application.
|
|
204
211
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/main
|
|
205
212
|
*
|
|
206
|
-
* @type {
|
|
213
|
+
* @type {ElementHelper}
|
|
207
214
|
*/
|
|
208
|
-
export const main:
|
|
215
|
+
export const main: ElementHelper;
|
|
209
216
|
/**
|
|
210
217
|
* <nav>
|
|
211
218
|
* Represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
|
|
212
219
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/nav
|
|
213
220
|
*
|
|
214
|
-
* @type {
|
|
221
|
+
* @type {ElementHelper}
|
|
215
222
|
*/
|
|
216
|
-
export const nav:
|
|
223
|
+
export const nav: ElementHelper;
|
|
217
224
|
/**
|
|
218
225
|
* <section>
|
|
219
226
|
* Represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. Sections should always have a heading, with very few exceptions.
|
|
220
227
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/section
|
|
221
228
|
*
|
|
222
|
-
* @type {
|
|
229
|
+
* @type {ElementHelper}
|
|
223
230
|
*/
|
|
224
|
-
export const section:
|
|
231
|
+
export const section: ElementHelper;
|
|
225
232
|
/**
|
|
226
233
|
* <search>
|
|
227
234
|
* Represents a part that contains a set of form controls or other content related to performing a search or filtering operation.
|
|
228
235
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search
|
|
229
236
|
*
|
|
230
|
-
* @type {
|
|
237
|
+
* @type {ElementHelper}
|
|
231
238
|
*/
|
|
232
|
-
export const search:
|
|
239
|
+
export const search: ElementHelper;
|
|
233
240
|
/**
|
|
234
241
|
* <blockquote>
|
|
235
242
|
* Indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation. A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite> element.
|
|
236
243
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/blockquote
|
|
237
244
|
*
|
|
238
|
-
* @type {
|
|
245
|
+
* @type {ElementHelper}
|
|
239
246
|
*/
|
|
240
|
-
export const blockquote:
|
|
247
|
+
export const blockquote: ElementHelper;
|
|
241
248
|
/**
|
|
242
249
|
* <dd>
|
|
243
250
|
* Provides the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).
|
|
244
251
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dd
|
|
245
252
|
*
|
|
246
|
-
* @type {
|
|
253
|
+
* @type {ElementHelper}
|
|
247
254
|
*/
|
|
248
|
-
export const dd:
|
|
255
|
+
export const dd: ElementHelper;
|
|
249
256
|
/**
|
|
250
257
|
* <div>
|
|
251
258
|
* The generic container for flow content. It has no effect on the content or layout until styled in some way using CSS (e.g., styling is directly applied to it, or some kind of layout model like flexbox is applied to its parent element).
|
|
252
259
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/div
|
|
253
260
|
*
|
|
254
|
-
* @type {
|
|
261
|
+
* @type {ElementHelper}
|
|
255
262
|
*/
|
|
256
|
-
export const div:
|
|
263
|
+
export const div: ElementHelper;
|
|
257
264
|
/**
|
|
258
265
|
* <dl>
|
|
259
266
|
* Represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
|
|
260
267
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dl
|
|
261
268
|
*
|
|
262
|
-
* @type {
|
|
269
|
+
* @type {ElementHelper}
|
|
263
270
|
*/
|
|
264
|
-
export const dl:
|
|
271
|
+
export const dl: ElementHelper;
|
|
265
272
|
/**
|
|
266
273
|
* <dt>
|
|
267
274
|
* Specifies a term in a description or definition list, and as such must be used inside a <dl> element. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.
|
|
268
275
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dt
|
|
269
276
|
*
|
|
270
|
-
* @type {
|
|
277
|
+
* @type {ElementHelper}
|
|
271
278
|
*/
|
|
272
|
-
export const dt:
|
|
279
|
+
export const dt: ElementHelper;
|
|
273
280
|
/**
|
|
274
281
|
* <figcaption>
|
|
275
282
|
* Represents a caption or legend describing the rest of the contents of its parent <figure> element.
|
|
276
283
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figcaption
|
|
277
284
|
*
|
|
278
|
-
* @type {
|
|
285
|
+
* @type {ElementHelper}
|
|
279
286
|
*/
|
|
280
|
-
export const figcaption:
|
|
287
|
+
export const figcaption: ElementHelper;
|
|
281
288
|
/**
|
|
282
289
|
* <figure>
|
|
283
290
|
* Represents self-contained content, potentially with an optional caption, which is specified using the <figcaption> element. The figure, its caption, and its contents are referenced as a single unit.
|
|
284
291
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figure
|
|
285
292
|
*
|
|
286
|
-
* @type {
|
|
293
|
+
* @type {ElementHelper}
|
|
287
294
|
*/
|
|
288
|
-
export const figure:
|
|
295
|
+
export const figure: ElementHelper;
|
|
289
296
|
/**
|
|
290
297
|
* <hr>
|
|
291
298
|
* Represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
|
|
292
299
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/hr
|
|
293
300
|
*
|
|
294
|
-
* @type {
|
|
301
|
+
* @type {ElementHelper}
|
|
295
302
|
*/
|
|
296
|
-
export const hr:
|
|
303
|
+
export const hr: ElementHelper;
|
|
297
304
|
/**
|
|
298
305
|
* <li>
|
|
299
306
|
* Represents an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.
|
|
300
307
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/li
|
|
301
308
|
*
|
|
302
|
-
* @type {
|
|
309
|
+
* @type {ElementHelper}
|
|
303
310
|
*/
|
|
304
|
-
export const li:
|
|
311
|
+
export const li: ElementHelper;
|
|
305
312
|
/**
|
|
306
313
|
* <menu>
|
|
307
314
|
* A semantic alternative to <ul>, but treated by browsers (and exposed through the accessibility tree) as no different than <ul>. It represents an unordered list of items (which are represented by <li> elements).
|
|
308
315
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/menu
|
|
309
316
|
*
|
|
310
|
-
* @type {
|
|
317
|
+
* @type {ElementHelper}
|
|
311
318
|
*/
|
|
312
|
-
export const menu:
|
|
319
|
+
export const menu: ElementHelper;
|
|
313
320
|
/**
|
|
314
321
|
* <ol>
|
|
315
322
|
* Represents an ordered list of items — typically rendered as a numbered list.
|
|
316
323
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ol
|
|
317
324
|
*
|
|
318
|
-
* @type {
|
|
325
|
+
* @type {ElementHelper}
|
|
319
326
|
*/
|
|
320
|
-
export const ol:
|
|
327
|
+
export const ol: ElementHelper;
|
|
321
328
|
/**
|
|
322
329
|
* <p>
|
|
323
330
|
* Represents a paragraph. Paragraphs are usually represented in visual media as blocks of text separated from adjacent blocks by blank lines and/or first-line indentation, but HTML paragraphs can be any structural grouping of related content, such as images or form fields.
|
|
324
331
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/p
|
|
325
332
|
*
|
|
326
|
-
* @type {
|
|
333
|
+
* @type {ElementHelper}
|
|
327
334
|
*/
|
|
328
|
-
export const p:
|
|
335
|
+
export const p: ElementHelper;
|
|
329
336
|
/** ')
|
|
330
337
|
* <pre>
|
|
331
338
|
* Represents preformatted text which is to be presented exactly as written in the HTML file. The text is typically rendered using a non-proportional, or monospaced, font. Whitespace inside this element is displayed as written.
|
|
332
339
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/pre
|
|
333
340
|
*
|
|
334
|
-
* @type {
|
|
341
|
+
* @type {ElementHelper}
|
|
335
342
|
*/
|
|
336
|
-
export const pre:
|
|
343
|
+
export const pre: ElementHelper;
|
|
337
344
|
/**
|
|
338
345
|
* <ul>
|
|
339
346
|
* Represents an unordered list of items, typically rendered as a bulleted list.
|
|
340
347
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ul
|
|
341
348
|
*
|
|
342
|
-
* @type {
|
|
349
|
+
* @type {ElementHelper}
|
|
343
350
|
*/
|
|
344
|
-
export const ul:
|
|
351
|
+
export const ul: ElementHelper;
|
|
345
352
|
/**
|
|
346
353
|
* <a>
|
|
347
354
|
* Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.
|
|
348
355
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a
|
|
349
356
|
*
|
|
350
|
-
* @type {
|
|
357
|
+
* @type {ElementHelper}
|
|
351
358
|
*/
|
|
352
|
-
export const a:
|
|
359
|
+
export const a: ElementHelper;
|
|
353
360
|
/**
|
|
354
361
|
* <abbr>
|
|
355
362
|
* Represents an abbreviation or acronym.
|
|
356
363
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/abbr
|
|
357
364
|
*
|
|
358
|
-
* @type {
|
|
365
|
+
* @type {ElementHelper}
|
|
359
366
|
*/
|
|
360
|
-
export const abbr:
|
|
367
|
+
export const abbr: ElementHelper;
|
|
361
368
|
/**
|
|
362
369
|
* <b>
|
|
363
370
|
* Used to draw the reader's attention to the element's contents, which are not otherwise granted special importance. This was formerly known as the Boldface element, and most browsers still draw the text in boldface. However, you should not use <b> for styling text or granting importance. If you wish to create boldface text, you should use the CSS font-weight property. If you wish to indicate an element is of special importance, you should use the <strong> element.
|
|
364
371
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/b
|
|
365
372
|
*
|
|
366
|
-
* @type {
|
|
373
|
+
* @type {ElementHelper}
|
|
367
374
|
*/
|
|
368
|
-
export const b:
|
|
375
|
+
export const b: ElementHelper;
|
|
369
376
|
/**
|
|
370
377
|
* <bdi>
|
|
371
378
|
* Tells the browser's bidirectional algorithm to treat the text it contains in isolation from its surrounding text. It's particularly useful when a website dynamically inserts some text and doesn't know the directionality of the text being inserted.
|
|
372
379
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdi
|
|
373
380
|
*
|
|
374
|
-
* @type {
|
|
381
|
+
* @type {ElementHelper}
|
|
375
382
|
*/
|
|
376
|
-
export const bdi:
|
|
383
|
+
export const bdi: ElementHelper;
|
|
377
384
|
/**
|
|
378
385
|
* <bdo>
|
|
379
386
|
* Overrides the current directionality of text, so that the text within is rendered in a different direction.
|
|
380
387
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/bdo
|
|
381
388
|
*
|
|
382
|
-
* @type {
|
|
389
|
+
* @type {ElementHelper}
|
|
383
390
|
*/
|
|
384
|
-
export const bdo:
|
|
391
|
+
export const bdo: ElementHelper;
|
|
385
392
|
/**
|
|
386
393
|
* <br>
|
|
387
394
|
* Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
|
|
388
395
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/br
|
|
389
396
|
*
|
|
390
|
-
* @type {
|
|
397
|
+
* @type {ElementHelper}
|
|
391
398
|
*/
|
|
392
|
-
export const br:
|
|
399
|
+
export const br: ElementHelper;
|
|
393
400
|
/**
|
|
394
401
|
* <cite>
|
|
395
402
|
* Used to mark up the title of a creative work. The reference may be in an abbreviated form according to context-appropriate conventions related to citation metadata.
|
|
396
403
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/cite
|
|
397
404
|
*
|
|
398
|
-
* @type {
|
|
405
|
+
* @type {ElementHelper}
|
|
399
406
|
*/
|
|
400
|
-
export const cite:
|
|
407
|
+
export const cite: ElementHelper;
|
|
401
408
|
/**
|
|
402
409
|
* <code>
|
|
403
410
|
* Displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. By default, the content text is displayed using the user agent's default monospace font.
|
|
404
411
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/code
|
|
405
412
|
*
|
|
406
|
-
* @type {
|
|
413
|
+
* @type {ElementHelper}
|
|
407
414
|
*/
|
|
408
|
-
export const code:
|
|
415
|
+
export const code: ElementHelper;
|
|
409
416
|
/**
|
|
410
417
|
* <data>
|
|
411
418
|
* Links a given piece of content with a machine-readable translation. If the content is time- or date-related, the <time> element must be used.
|
|
412
419
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/data
|
|
413
420
|
*
|
|
414
|
-
* @type {
|
|
421
|
+
* @type {ElementHelper}
|
|
415
422
|
*/
|
|
416
|
-
export const data:
|
|
423
|
+
export const data: ElementHelper;
|
|
417
424
|
/**
|
|
418
425
|
* <dfn>
|
|
419
426
|
* Used to indicate the term being defined within the context of a definition phrase or sentence. The ancestor <p> element, the <dt>/<dd> pairing, or the nearest section ancestor of the <dfn> element, is considered to be the definition of the term.
|
|
420
427
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dfn
|
|
421
428
|
*
|
|
422
|
-
* @type {
|
|
429
|
+
* @type {ElementHelper}
|
|
423
430
|
*/
|
|
424
|
-
export const dfn:
|
|
431
|
+
export const dfn: ElementHelper;
|
|
425
432
|
/**
|
|
426
433
|
* <em>
|
|
427
434
|
* Marks text that has stress emphasis. The <em> element can be nested, with each nesting level indicating a greater degree of emphasis.
|
|
428
435
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/em
|
|
429
436
|
*
|
|
430
|
-
* @type {
|
|
437
|
+
* @type {ElementHelper}
|
|
431
438
|
*/
|
|
432
|
-
export const em:
|
|
439
|
+
export const em: ElementHelper;
|
|
433
440
|
/**
|
|
434
441
|
* <i>
|
|
435
442
|
* Represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, and taxonomical designations, among others. Historically, these have been presented using italicized type, which is the original source of the <i> naming of this element.
|
|
436
443
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/i
|
|
437
444
|
*
|
|
438
|
-
* @type {
|
|
445
|
+
* @type {ElementHelper}
|
|
439
446
|
*/
|
|
440
|
-
export const i:
|
|
447
|
+
export const i: ElementHelper;
|
|
441
448
|
/**
|
|
442
449
|
* <kbd>
|
|
443
450
|
* Represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device. By convention, the user agent defaults to rendering the contents of a <kbd> element using its default monospace font, although this is not mandated by the HTML standard.
|
|
444
451
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/kbd
|
|
445
452
|
*
|
|
446
|
-
* @type {
|
|
453
|
+
* @type {ElementHelper}
|
|
447
454
|
*/
|
|
448
|
-
export const kbd:
|
|
455
|
+
export const kbd: ElementHelper;
|
|
449
456
|
/**
|
|
450
457
|
* <mark>
|
|
451
458
|
* Represents text which is marked or highlighted for reference or notation purposes due to the marked passage's relevance in the enclosing context.
|
|
452
459
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/mark
|
|
453
460
|
*
|
|
454
|
-
* @type {
|
|
461
|
+
* @type {ElementHelper}
|
|
455
462
|
*/
|
|
456
|
-
export const mark:
|
|
463
|
+
export const mark: ElementHelper;
|
|
457
464
|
/**
|
|
458
465
|
* <q>
|
|
459
466
|
* Indicates that the enclosed text is a short inline quotation. Most modern browsers implement this by surrounding the text in quotation marks. This element is intended for short quotations that don't require paragraph breaks; for long quotations use the <blockquote> element.
|
|
460
467
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/q>
|
|
461
468
|
*
|
|
462
|
-
* @type {
|
|
469
|
+
* @type {ElementHelper}
|
|
463
470
|
*/
|
|
464
|
-
export const q:
|
|
471
|
+
export const q: ElementHelper;
|
|
465
472
|
/**
|
|
466
473
|
* <rp>
|
|
467
474
|
* Used to provide fall-back parentheses for browsers that do not support the display of ruby annotations using the <ruby> element. One <rp> element should enclose each of the opening and closing parentheses that wrap the <rt> element that contains the annotation's text.
|
|
468
475
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rp
|
|
469
476
|
*
|
|
470
|
-
* @type {
|
|
477
|
+
* @type {ElementHelper}
|
|
471
478
|
*/
|
|
472
|
-
export const rp:
|
|
479
|
+
export const rp: ElementHelper;
|
|
473
480
|
/**
|
|
474
481
|
* <rt>
|
|
475
482
|
* Specifies the ruby text component of a ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian typography. The <rt> element must always be contained within a <ruby> element.
|
|
476
483
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rt
|
|
477
484
|
*
|
|
478
|
-
* @type {
|
|
485
|
+
* @type {ElementHelper}
|
|
479
486
|
*/
|
|
480
|
-
export const rt:
|
|
487
|
+
export const rt: ElementHelper;
|
|
481
488
|
/**
|
|
482
489
|
* <ruby>
|
|
483
490
|
* Represents small annotations that are rendered above, below, or next to base text, usually used for showing the pronunciation of East Asian characters. It can also be used for annotating other kinds of text, but this usage is less common.
|
|
484
491
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ruby
|
|
485
492
|
*
|
|
486
|
-
* @type {
|
|
493
|
+
* @type {ElementHelper}
|
|
487
494
|
*/
|
|
488
|
-
export const ruby:
|
|
495
|
+
export const ruby: ElementHelper;
|
|
489
496
|
/**
|
|
490
497
|
* <s>
|
|
491
498
|
* Renders text with a strikethrough, or a line through it. Use the <s> element to represent things that are no longer relevant or no longer accurate. However, <s> is not appropriate when indicating document edits; for that, use the <del> and <ins> elements, as appropriate.
|
|
492
499
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/s
|
|
493
500
|
*
|
|
494
|
-
* @type {
|
|
501
|
+
* @type {ElementHelper}
|
|
495
502
|
*/
|
|
496
|
-
export const s:
|
|
503
|
+
export const s: ElementHelper;
|
|
497
504
|
/**
|
|
498
505
|
* <samp>
|
|
499
506
|
* Used to enclose inline text which represents sample (or quoted) output from a computer program. Its contents are typically rendered using the browser's default monospaced font (such as Courier or Lucida Console).
|
|
500
507
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/samp
|
|
501
508
|
*
|
|
502
|
-
* @type {
|
|
509
|
+
* @type {ElementHelper}
|
|
503
510
|
*/
|
|
504
|
-
export const samp:
|
|
511
|
+
export const samp: ElementHelper;
|
|
505
512
|
/**
|
|
506
513
|
* <small>
|
|
507
514
|
* Represents side-comments and small print, like copyright and legal text, independent of its styled presentation. By default, it renders text within it one font size smaller, such as from small to x-small.
|
|
508
515
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/small
|
|
509
516
|
*
|
|
510
|
-
* @type {
|
|
517
|
+
* @type {ElementHelper}
|
|
511
518
|
*/
|
|
512
|
-
export const small:
|
|
519
|
+
export const small: ElementHelper;
|
|
513
520
|
/**
|
|
514
521
|
* <span>
|
|
515
522
|
* A generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such as lang. It should be used only when no other semantic element is appropriate. <span> is very much like a div element, but div is a block-level element whereas a <span> is an inline-level element.
|
|
516
523
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span
|
|
517
524
|
*
|
|
518
|
-
* @type {
|
|
525
|
+
* @type {ElementHelper}
|
|
519
526
|
*/
|
|
520
|
-
export const span:
|
|
527
|
+
export const span: ElementHelper;
|
|
521
528
|
/**
|
|
522
529
|
* <strong>
|
|
523
530
|
* Indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.
|
|
524
531
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/strong
|
|
525
532
|
*
|
|
526
|
-
* @type {
|
|
533
|
+
* @type {ElementHelper}
|
|
527
534
|
*/
|
|
528
|
-
export const strong:
|
|
535
|
+
export const strong: ElementHelper;
|
|
529
536
|
/**
|
|
530
537
|
* <sub>
|
|
531
538
|
* Specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text.
|
|
532
539
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sub
|
|
533
540
|
*
|
|
534
|
-
* @type {
|
|
541
|
+
* @type {ElementHelper}
|
|
535
542
|
*/
|
|
536
|
-
export const sub:
|
|
543
|
+
export const sub: ElementHelper;
|
|
537
544
|
/**
|
|
538
545
|
* <sup>
|
|
539
546
|
* Specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.
|
|
540
547
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/sup
|
|
541
548
|
*
|
|
542
|
-
* @type {
|
|
549
|
+
* @type {ElementHelper}
|
|
543
550
|
*/
|
|
544
|
-
export const sup:
|
|
551
|
+
export const sup: ElementHelper;
|
|
545
552
|
/**
|
|
546
553
|
* <time>
|
|
547
554
|
* Represents a specific period in time. It may include the datetime attribute to translate dates into machine-readable format, allowing for better search engine results or custom features such as reminders.
|
|
548
555
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/time
|
|
549
556
|
*
|
|
550
|
-
* @type {
|
|
557
|
+
* @type {ElementHelper}
|
|
551
558
|
*/
|
|
552
|
-
export const time:
|
|
559
|
+
export const time: ElementHelper;
|
|
553
560
|
/**
|
|
554
561
|
* <u>
|
|
555
562
|
* Represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. This is rendered by default as a single solid underline but may be altered using CSS.
|
|
556
563
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/u
|
|
557
564
|
*
|
|
558
|
-
* @type {
|
|
565
|
+
* @type {ElementHelper}
|
|
559
566
|
*/
|
|
560
|
-
export const u:
|
|
567
|
+
export const u: ElementHelper;
|
|
561
568
|
/**
|
|
562
569
|
* <var>
|
|
563
570
|
* Represents the name of a variable in a mathematical expression or a programming context. It's typically presented using an italicized version of the current typeface, although that behavior is browser-dependent.
|
|
564
571
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/var
|
|
565
572
|
*
|
|
566
|
-
* @type {
|
|
573
|
+
* @type {ElementHelper}
|
|
567
574
|
*/
|
|
568
|
-
export const htmlvar:
|
|
575
|
+
export const htmlvar: ElementHelper;
|
|
569
576
|
/**
|
|
570
577
|
* <wbr>
|
|
571
578
|
* Represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
|
|
572
579
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/wbr
|
|
573
580
|
*
|
|
574
|
-
* @type {
|
|
581
|
+
* @type {ElementHelper}
|
|
575
582
|
*/
|
|
576
|
-
export const wbr:
|
|
583
|
+
export const wbr: ElementHelper;
|
|
577
584
|
/**
|
|
578
585
|
* <area>
|
|
579
586
|
* Defines an area inside an image map that has predefined clickable areas. An image map allows geometric areas on an image to be associated with hyperlink.
|
|
580
587
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/area
|
|
581
588
|
*
|
|
582
|
-
* @type {
|
|
589
|
+
* @type {ElementHelper}
|
|
583
590
|
*/
|
|
584
|
-
export const area:
|
|
591
|
+
export const area: ElementHelper;
|
|
585
592
|
/**
|
|
586
593
|
* <audio>
|
|
587
594
|
* Used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.
|
|
588
595
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/audio
|
|
589
596
|
*
|
|
590
|
-
* @type {
|
|
597
|
+
* @type {ElementHelper}
|
|
591
598
|
*/
|
|
592
|
-
export const audio:
|
|
599
|
+
export const audio: ElementHelper;
|
|
593
600
|
/**
|
|
594
601
|
* <img>
|
|
595
602
|
* Embeds an image into the document.
|
|
596
603
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img
|
|
597
604
|
*
|
|
598
|
-
* @type {
|
|
605
|
+
* @type {ElementHelper}
|
|
599
606
|
*/
|
|
600
|
-
export const img:
|
|
607
|
+
export const img: ElementHelper;
|
|
601
608
|
/**
|
|
602
609
|
* <map>
|
|
603
610
|
* Used with <area> elements to define an image map (a clickable link area).
|
|
604
611
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/map
|
|
605
612
|
*
|
|
606
|
-
* @type {
|
|
613
|
+
* @type {ElementHelper}
|
|
607
614
|
*/
|
|
608
|
-
export const map:
|
|
615
|
+
export const map: ElementHelper;
|
|
609
616
|
/**
|
|
610
617
|
* <track>
|
|
611
618
|
* Used as a child of the media elements, audio and video. It lets you specify timed text tracks (or time-based data), for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files)—Web Video Text Tracks.
|
|
612
619
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/track
|
|
613
620
|
*
|
|
614
|
-
* @type {
|
|
621
|
+
* @type {ElementHelper}
|
|
615
622
|
*/
|
|
616
|
-
export const track:
|
|
623
|
+
export const track: ElementHelper;
|
|
617
624
|
/**
|
|
618
625
|
* <video>
|
|
619
626
|
* Embeds a media player which supports video playback into the document. You can also use <video> for audio content, but the audio element may provide a more appropriate user experience.
|
|
620
627
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video
|
|
621
628
|
*
|
|
622
|
-
* @type {
|
|
629
|
+
* @type {ElementHelper}
|
|
623
630
|
*/
|
|
624
|
-
export const video:
|
|
631
|
+
export const video: ElementHelper;
|
|
625
632
|
/**
|
|
626
633
|
* <embed>
|
|
627
634
|
* Embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.
|
|
628
635
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/embed
|
|
629
636
|
*
|
|
630
|
-
* @type {
|
|
637
|
+
* @type {ElementHelper}
|
|
631
638
|
*/
|
|
632
|
-
export const embed:
|
|
639
|
+
export const embed: ElementHelper;
|
|
633
640
|
/**
|
|
634
641
|
* <iframe>
|
|
635
642
|
* Represents a nested browsing context, embedding another HTML page into the current one.
|
|
636
643
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe
|
|
637
644
|
*
|
|
638
|
-
* @type {
|
|
645
|
+
* @type {ElementHelper}
|
|
639
646
|
*/
|
|
640
|
-
export const iframe:
|
|
647
|
+
export const iframe: ElementHelper;
|
|
641
648
|
/**
|
|
642
649
|
* <object>
|
|
643
650
|
* Represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
|
|
644
651
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/object
|
|
645
652
|
*
|
|
646
|
-
* @type {
|
|
653
|
+
* @type {ElementHelper}
|
|
647
654
|
*/
|
|
648
|
-
export const object:
|
|
655
|
+
export const object: ElementHelper;
|
|
649
656
|
/**
|
|
650
657
|
* <picture>
|
|
651
658
|
* Contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
|
|
652
659
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/picture
|
|
653
660
|
*
|
|
654
|
-
* @type {
|
|
661
|
+
* @type {ElementHelper}
|
|
655
662
|
*/
|
|
656
|
-
export const picture:
|
|
663
|
+
export const picture: ElementHelper;
|
|
657
664
|
/**
|
|
658
665
|
* <source>
|
|
659
666
|
* Specifies multiple media resources for the picture, the audio element, or the video element. It is a void element, meaning that it has no content and does not have a closing tag. It is commonly used to offer the same media content in multiple file formats in order to provide compatibility with a broad range of browsers given their differing support for image file formats and media file formats.
|
|
660
667
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/source
|
|
661
668
|
*
|
|
662
|
-
* @type {
|
|
669
|
+
* @type {ElementHelper}
|
|
663
670
|
*/
|
|
664
|
-
export const source:
|
|
671
|
+
export const source: ElementHelper;
|
|
665
672
|
/**
|
|
666
673
|
* <canvas>
|
|
667
674
|
* Container element to use with either the canvas scripting API or the WebGL API to draw graphics and animations.
|
|
668
675
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/canvas
|
|
669
676
|
*
|
|
670
|
-
* @type {
|
|
677
|
+
* @type {ElementHelper}
|
|
671
678
|
*/
|
|
672
|
-
export const canvas:
|
|
679
|
+
export const canvas: ElementHelper;
|
|
673
680
|
/**
|
|
674
681
|
* <noscript>
|
|
675
682
|
* Defines a section of HTML to be inserted if a script type on the page is unsupported or if scripting is currently turned off in the browser.
|
|
676
683
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/noscript
|
|
677
684
|
*
|
|
678
|
-
* @type {
|
|
685
|
+
* @type {ElementHelper}
|
|
679
686
|
*/
|
|
680
|
-
export const noscript:
|
|
687
|
+
export const noscript: ElementHelper;
|
|
681
688
|
/**
|
|
682
689
|
* <script>
|
|
683
690
|
* Used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON.
|
|
684
691
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script
|
|
685
692
|
*
|
|
686
|
-
* @type {
|
|
693
|
+
* @type {ElementHelper}
|
|
687
694
|
*/
|
|
688
|
-
export const script:
|
|
695
|
+
export const script: ElementHelper;
|
|
689
696
|
/**
|
|
690
697
|
* <del>
|
|
691
698
|
* Represents a range of text that has been deleted from a document. This can be used when rendering "track changes" or source code diff information, for example. The <ins> element can be used for the opposite purpose: to indicate text that has been added to the document.
|
|
692
699
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/del
|
|
693
700
|
*
|
|
694
|
-
* @type {
|
|
701
|
+
* @type {ElementHelper}
|
|
695
702
|
*/
|
|
696
|
-
export const del:
|
|
703
|
+
export const del: ElementHelper;
|
|
697
704
|
/**
|
|
698
705
|
* <ins>
|
|
699
706
|
* Represents a range of text that has been added to a document. You can use the <del> element to similarly represent a range of text that has been deleted from the document.
|
|
700
707
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ins
|
|
701
708
|
*
|
|
702
|
-
* @type {
|
|
709
|
+
* @type {ElementHelper}
|
|
703
710
|
*/
|
|
704
|
-
export const ins:
|
|
711
|
+
export const ins: ElementHelper;
|
|
705
712
|
/**
|
|
706
713
|
* <caption>
|
|
707
714
|
* Specifies the caption (or title) of a table.
|
|
708
715
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/caption
|
|
709
716
|
*
|
|
710
|
-
* @type {
|
|
717
|
+
* @type {ElementHelper}
|
|
711
718
|
*/
|
|
712
|
-
export const caption:
|
|
719
|
+
export const caption: ElementHelper;
|
|
713
720
|
/**
|
|
714
721
|
* <col>
|
|
715
722
|
* Defines one or more columns in a column group represented by its implicit or explicit parent <colgroup> element. The <col> element is only valid as a child of a <colgroup> element that has no span attribute defined.
|
|
716
723
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/col
|
|
717
724
|
*
|
|
718
|
-
* @type {
|
|
725
|
+
* @type {ElementHelper}
|
|
719
726
|
*/
|
|
720
|
-
export const col:
|
|
727
|
+
export const col: ElementHelper;
|
|
721
728
|
/**
|
|
722
729
|
* <colgroup>
|
|
723
730
|
* Defines a group of columns within a table.
|
|
724
731
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/colgroup
|
|
725
732
|
*
|
|
726
|
-
* @type {
|
|
733
|
+
* @type {ElementHelper}
|
|
727
734
|
*/
|
|
728
|
-
export const colgroup:
|
|
735
|
+
export const colgroup: ElementHelper;
|
|
729
736
|
/**
|
|
730
737
|
* <table>
|
|
731
738
|
* Represents tabular data—that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
|
|
732
739
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/table
|
|
733
740
|
*
|
|
734
|
-
* @type {
|
|
741
|
+
* @type {ElementHelper}
|
|
735
742
|
*/
|
|
736
|
-
export const table:
|
|
743
|
+
export const table: ElementHelper;
|
|
737
744
|
/**
|
|
738
745
|
* <tbody>
|
|
739
746
|
* Encapsulates a set of table rows (<tr> elements), indicating that they comprise the body of a table's (main) data.
|
|
740
747
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tbody
|
|
741
748
|
*
|
|
742
|
-
* @type {
|
|
749
|
+
* @type {ElementHelper}
|
|
743
750
|
*/
|
|
744
|
-
export const tbody:
|
|
751
|
+
export const tbody: ElementHelper;
|
|
745
752
|
/**
|
|
746
753
|
* <td>
|
|
747
754
|
* A child of the <tr> element, it defines a cell of a table that contains data.
|
|
748
755
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/td
|
|
749
756
|
*
|
|
750
|
-
* @type {
|
|
757
|
+
* @type {ElementHelper}
|
|
751
758
|
*/
|
|
752
|
-
export const td:
|
|
759
|
+
export const td: ElementHelper;
|
|
753
760
|
/**
|
|
754
761
|
* <tfoot>
|
|
755
762
|
* Encapsulates a set of table rows (<tr> elements), indicating that they comprise the foot of a table with information about the table's columns. This is usually a summary of the columns, e.g., a sum of the given numbers in a column.
|
|
756
763
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tfoot
|
|
757
764
|
*
|
|
758
|
-
* @type {
|
|
765
|
+
* @type {ElementHelper}
|
|
759
766
|
*/
|
|
760
|
-
export const tfoot:
|
|
767
|
+
export const tfoot: ElementHelper;
|
|
761
768
|
/**
|
|
762
769
|
* <th>
|
|
763
770
|
* A child of the <tr> element, it defines a cell as the header of a group of table cells. The nature of this group can be explicitly defined by the scope and headers attributes.
|
|
764
771
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/th
|
|
765
772
|
*
|
|
766
|
-
* @type {
|
|
773
|
+
* @type {ElementHelper}
|
|
767
774
|
*/
|
|
768
|
-
export const th:
|
|
775
|
+
export const th: ElementHelper;
|
|
769
776
|
/**
|
|
770
777
|
* <thead>
|
|
771
778
|
* Encapsulates a set of table rows (<tr> elements), indicating that they comprise the head of a table with information about the table's columns. This is usually in the form of column headers (<th> elements).
|
|
772
779
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/thead
|
|
773
780
|
*
|
|
774
|
-
* @type {
|
|
781
|
+
* @type {ElementHelper}
|
|
775
782
|
*/
|
|
776
|
-
export const thead:
|
|
783
|
+
export const thead: ElementHelper;
|
|
777
784
|
/**
|
|
778
785
|
* <tr>
|
|
779
786
|
* Defines a row of cells in a table. The row's cells can then be established using a mix of <td> (data cell) and <th> (header cell) elements.
|
|
780
787
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/tr
|
|
781
788
|
*
|
|
782
|
-
* @type {
|
|
789
|
+
* @type {ElementHelper}
|
|
783
790
|
*/
|
|
784
|
-
export const tr:
|
|
791
|
+
export const tr: ElementHelper;
|
|
785
792
|
/**
|
|
786
793
|
* <button>
|
|
787
794
|
* An interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it performs an action, such as submitting a form or opening a dialog.
|
|
788
795
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button
|
|
789
796
|
*
|
|
790
|
-
* @type {
|
|
797
|
+
* @type {ElementHelper}
|
|
791
798
|
*/
|
|
792
|
-
export const button:
|
|
799
|
+
export const button: ElementHelper;
|
|
793
800
|
/**
|
|
794
801
|
* <datalist>
|
|
795
802
|
* Contains a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
|
|
796
803
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/datalist
|
|
797
804
|
*
|
|
798
|
-
* @type {
|
|
805
|
+
* @type {ElementHelper}
|
|
799
806
|
*/
|
|
800
|
-
export const datalist:
|
|
807
|
+
export const datalist: ElementHelper;
|
|
801
808
|
/**
|
|
802
809
|
* <fieldset>
|
|
803
810
|
* Used to group several controls as well as labels (<label>) within a web form.
|
|
804
811
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/fieldset
|
|
805
812
|
*
|
|
806
|
-
* @type {
|
|
813
|
+
* @type {ElementHelper}
|
|
807
814
|
*/
|
|
808
|
-
export const fieldset:
|
|
815
|
+
export const fieldset: ElementHelper;
|
|
809
816
|
/**
|
|
810
817
|
* <form>
|
|
811
818
|
* Represents a document section containing interactive controls for submitting information.
|
|
812
819
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form
|
|
813
820
|
*
|
|
814
|
-
* @type {
|
|
821
|
+
* @type {ElementHelper}
|
|
815
822
|
*/
|
|
816
|
-
export const form:
|
|
823
|
+
export const form: ElementHelper;
|
|
817
824
|
/**
|
|
818
825
|
* <input>
|
|
819
826
|
* Used to create interactive controls for web-based forms to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
|
|
820
827
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input
|
|
821
828
|
*
|
|
822
|
-
* @type {
|
|
829
|
+
* @type {ElementHelper}
|
|
823
830
|
*/
|
|
824
|
-
export const input:
|
|
831
|
+
export const input: ElementHelper;
|
|
825
832
|
/**
|
|
826
833
|
* <label>
|
|
827
834
|
* Represents a caption for an item in a user interface.
|
|
828
835
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label
|
|
829
836
|
*
|
|
830
|
-
* @type {
|
|
837
|
+
* @type {ElementHelper}
|
|
831
838
|
*/
|
|
832
|
-
export const label:
|
|
839
|
+
export const label: ElementHelper;
|
|
833
840
|
/**
|
|
834
841
|
* <legend>
|
|
835
842
|
* Represents a caption for the content of its parent <fieldset>.
|
|
836
843
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/legend
|
|
837
844
|
*
|
|
838
|
-
* @type {
|
|
845
|
+
* @type {ElementHelper}
|
|
839
846
|
*/
|
|
840
|
-
export const legend:
|
|
847
|
+
export const legend: ElementHelper;
|
|
841
848
|
/**
|
|
842
849
|
* <meter>
|
|
843
850
|
* Represents either a scalar value within a known range or a fractional value.
|
|
844
851
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meter
|
|
845
852
|
*
|
|
846
|
-
* @type {
|
|
853
|
+
* @type {ElementHelper}
|
|
847
854
|
*/
|
|
848
|
-
export const meter:
|
|
855
|
+
export const meter: ElementHelper;
|
|
849
856
|
/**
|
|
850
857
|
* <optgroup>
|
|
851
858
|
* Creates a grouping of options within a <select> element.
|
|
852
859
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/optgroup
|
|
853
860
|
*
|
|
854
|
-
* @type {
|
|
861
|
+
* @type {ElementHelper}
|
|
855
862
|
*/
|
|
856
|
-
export const optgroup:
|
|
863
|
+
export const optgroup: ElementHelper;
|
|
857
864
|
/**
|
|
858
865
|
* <option>
|
|
859
866
|
* Used to define an item contained in a select, an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document.
|
|
860
867
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/option
|
|
861
868
|
*
|
|
862
|
-
* @type {
|
|
869
|
+
* @type {ElementHelper}
|
|
863
870
|
*/
|
|
864
|
-
export const option:
|
|
871
|
+
export const option: ElementHelper;
|
|
865
872
|
/**
|
|
866
873
|
* <output>
|
|
867
874
|
* Container element into which a site or app can inject the results of a calculation or the outcome of a user action.
|
|
868
875
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/output
|
|
869
876
|
*
|
|
870
|
-
* @type {
|
|
877
|
+
* @type {ElementHelper}
|
|
871
878
|
*/
|
|
872
|
-
export const output:
|
|
879
|
+
export const output: ElementHelper;
|
|
873
880
|
/**
|
|
874
881
|
* <progress>
|
|
875
882
|
* Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.
|
|
876
883
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/progress
|
|
877
884
|
*
|
|
878
|
-
* @type {
|
|
885
|
+
* @type {ElementHelper}
|
|
879
886
|
*/
|
|
880
|
-
export const progress:
|
|
887
|
+
export const progress: ElementHelper;
|
|
881
888
|
/**
|
|
882
889
|
* <select>
|
|
883
890
|
* Represents a control that provides a menu of options.
|
|
884
891
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/select
|
|
885
892
|
*
|
|
886
|
-
* @type {
|
|
893
|
+
* @type {ElementHelper}
|
|
887
894
|
*/
|
|
888
|
-
export const select:
|
|
895
|
+
export const select: ElementHelper;
|
|
889
896
|
/**
|
|
890
897
|
* <textarea>
|
|
891
898
|
* Represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example, a comment on a review or feedback form.
|
|
892
899
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/textarea
|
|
893
900
|
*
|
|
894
|
-
* @type {
|
|
901
|
+
* @type {ElementHelper}
|
|
895
902
|
*/
|
|
896
|
-
export const textarea:
|
|
903
|
+
export const textarea: ElementHelper;
|
|
897
904
|
/**
|
|
898
905
|
* <details>
|
|
899
906
|
* Creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label must be provided using the <summary> element.
|
|
900
907
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details
|
|
901
908
|
*
|
|
902
|
-
* @type {
|
|
909
|
+
* @type {ElementHelper}
|
|
903
910
|
*/
|
|
904
|
-
export const details:
|
|
911
|
+
export const details: ElementHelper;
|
|
905
912
|
/**
|
|
906
913
|
* <dialog>
|
|
907
914
|
* Represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
|
|
908
915
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog
|
|
909
916
|
*
|
|
910
|
-
* @type {
|
|
917
|
+
* @type {ElementHelper}
|
|
911
918
|
*/
|
|
912
|
-
export const dialog:
|
|
919
|
+
export const dialog: ElementHelper;
|
|
913
920
|
/**
|
|
914
921
|
* <summary>
|
|
915
922
|
* Specifies a summary, caption, or legend for a details element's disclosure box. Clicking the <summary> element toggles the state of the parent <details> element open and closed.
|
|
916
923
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary
|
|
917
924
|
*
|
|
918
|
-
* @type {
|
|
925
|
+
* @type {ElementHelper}
|
|
919
926
|
*/
|
|
920
|
-
export const summary:
|
|
927
|
+
export const summary: ElementHelper;
|
|
921
928
|
/**
|
|
922
929
|
* <slot>
|
|
923
930
|
* Part of the Web Components technology suite, this element is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.
|
|
924
931
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/slot
|
|
925
932
|
*
|
|
926
|
-
* @type {
|
|
933
|
+
* @type {ElementHelper}
|
|
927
934
|
*/
|
|
928
|
-
export const slot:
|
|
935
|
+
export const slot: ElementHelper;
|
|
929
936
|
/**
|
|
930
937
|
* <template>
|
|
931
938
|
* A mechanism for holding HTML that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.
|
|
932
939
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template
|
|
933
940
|
*
|
|
934
|
-
* @type {
|
|
941
|
+
* @type {ElementHelper}
|
|
935
942
|
*/
|
|
936
|
-
export const template:
|
|
943
|
+
export const template: ElementHelper;
|
|
937
944
|
/**
|
|
938
945
|
* <image>
|
|
939
946
|
* An ancient and poorly supported precursor to the <img> element. It should not be used.
|
|
940
947
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/image
|
|
941
948
|
*
|
|
942
|
-
* @type {
|
|
949
|
+
* @type {ElementHelper}
|
|
943
950
|
*/
|
|
944
|
-
export const image:
|
|
951
|
+
export const image: ElementHelper;
|
|
945
952
|
/**
|
|
946
953
|
* <rb>
|
|
947
954
|
* Used to delimit the base text component of a ruby annotation, i.e., the text that is being annotated. One <rb> element should wrap each separate atomic segment of the base text.
|
|
948
955
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rb
|
|
949
956
|
*
|
|
950
|
-
* @type {
|
|
957
|
+
* @type {ElementHelper}
|
|
951
958
|
*/
|
|
952
|
-
export const rb:
|
|
959
|
+
export const rb: ElementHelper;
|
|
953
960
|
/**
|
|
954
961
|
* <rtc>
|
|
955
962
|
* Embraces semantic annotations of characters presented in a ruby of <rb> elements used inside of <ruby> element. <rb> elements can have both pronunciation (<rt>) and semantic (<rtc>) annotations.
|
|
956
963
|
* https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/rtc
|
|
957
964
|
*
|
|
958
|
-
* @type {
|
|
965
|
+
* @type {ElementHelper}
|
|
959
966
|
*/
|
|
960
|
-
export const rtc:
|
|
967
|
+
export const rtc: ElementHelper;
|
|
961
968
|
/**
|
|
962
969
|
* The <animate> SVG element provides a way to animate an attribute of an element over time.
|
|
963
970
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animate
|
|
964
971
|
*
|
|
965
|
-
* @type {
|
|
972
|
+
* @type {ElementHelper}
|
|
966
973
|
*/
|
|
967
|
-
export const animate:
|
|
974
|
+
export const animate: ElementHelper;
|
|
968
975
|
/**
|
|
969
976
|
* The <animateMotion> SVG element provides a way to define how an element moves along a motion path.
|
|
970
977
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateMotion
|
|
971
978
|
*
|
|
972
|
-
* @type {
|
|
979
|
+
* @type {ElementHelper}
|
|
973
980
|
*/
|
|
974
|
-
export const animateMotion:
|
|
981
|
+
export const animateMotion: ElementHelper;
|
|
975
982
|
/**
|
|
976
983
|
* The <animateTransform> SVG element animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing.
|
|
977
984
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateTransform
|
|
978
985
|
*
|
|
979
|
-
* @type {
|
|
986
|
+
* @type {ElementHelper}
|
|
980
987
|
*/
|
|
981
|
-
export const animateTransform:
|
|
988
|
+
export const animateTransform: ElementHelper;
|
|
982
989
|
/**
|
|
983
990
|
* The <mpath> SVG sub-element for the <animateMotion> element provides the ability to reference an external <path> element as the definition of a motion path.
|
|
984
991
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mpath
|
|
985
992
|
*
|
|
986
|
-
* @type {
|
|
993
|
+
* @type {ElementHelper}
|
|
987
994
|
*/
|
|
988
|
-
export const mpath:
|
|
995
|
+
export const mpath: ElementHelper;
|
|
989
996
|
/**
|
|
990
997
|
* The <set> SVG element provides a method of setting the value of an attribute for a specified duration.
|
|
991
998
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/set
|
|
992
999
|
*
|
|
993
|
-
* @type {
|
|
1000
|
+
* @type {ElementHelper}
|
|
994
1001
|
*/
|
|
995
|
-
export const set:
|
|
1002
|
+
export const set: ElementHelper;
|
|
996
1003
|
/**
|
|
997
1004
|
* The <circle> SVG element is an SVG basic shape, used to draw circles based on a center point and a radius.
|
|
998
1005
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/circle
|
|
999
1006
|
*
|
|
1000
|
-
* @type {
|
|
1007
|
+
* @type {ElementHelper}
|
|
1001
1008
|
*/
|
|
1002
|
-
export const circle:
|
|
1009
|
+
export const circle: ElementHelper;
|
|
1003
1010
|
/**
|
|
1004
1011
|
* The <ellipse> SVG element is an SVG basic shape, used to create ellipses based on a center coordinate, and both their x and y radius.
|
|
1005
1012
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/ellipse
|
|
1006
1013
|
*
|
|
1007
|
-
* @type {
|
|
1014
|
+
* @type {ElementHelper}
|
|
1008
1015
|
*/
|
|
1009
|
-
export const ellipse:
|
|
1016
|
+
export const ellipse: ElementHelper;
|
|
1010
1017
|
/**
|
|
1011
1018
|
* The <line> SVG element is an SVG basic shape used to create a line connecting two points.
|
|
1012
1019
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/line
|
|
1013
1020
|
*
|
|
1014
|
-
* @type {
|
|
1021
|
+
* @type {ElementHelper}
|
|
1015
1022
|
*/
|
|
1016
|
-
export const line:
|
|
1023
|
+
export const line: ElementHelper;
|
|
1017
1024
|
/**
|
|
1018
1025
|
* The <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element.
|
|
1019
1026
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/path
|
|
1020
1027
|
*
|
|
1021
|
-
* @type {
|
|
1028
|
+
* @type {ElementHelper}
|
|
1022
1029
|
*/
|
|
1023
|
-
export const path:
|
|
1030
|
+
export const path: ElementHelper;
|
|
1024
1031
|
/**
|
|
1025
1032
|
* The <polygon> SVG element defines a closed shape consisting of a set of connected straight line segments. The last point is connected to the first point.
|
|
1026
1033
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polygon
|
|
1027
1034
|
*
|
|
1028
|
-
* @type {
|
|
1035
|
+
* @type {ElementHelper}
|
|
1029
1036
|
*/
|
|
1030
|
-
export const polygon:
|
|
1037
|
+
export const polygon: ElementHelper;
|
|
1031
1038
|
/**
|
|
1032
1039
|
* The <polyline> SVG element is an SVG basic shape that creates straight lines connecting several points. Typically a polyline is used to create open shapes as the last point doesn't have to be connected to the first point. For closed shapes see the <polygon> element.
|
|
1033
1040
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polyline
|
|
1034
1041
|
*
|
|
1035
|
-
* @type {
|
|
1042
|
+
* @type {ElementHelper}
|
|
1036
1043
|
*/
|
|
1037
|
-
export const polyline:
|
|
1044
|
+
export const polyline: ElementHelper;
|
|
1038
1045
|
/**
|
|
1039
1046
|
* The <rect> SVG element is a basic SVG shape that draws rectangles, defined by their position, width, and height. The rectangles may have their corners rounded.
|
|
1040
1047
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/rect
|
|
1041
1048
|
*
|
|
1042
|
-
* @type {
|
|
1049
|
+
* @type {ElementHelper}
|
|
1043
1050
|
*/
|
|
1044
|
-
export const rect:
|
|
1051
|
+
export const rect: ElementHelper;
|
|
1045
1052
|
/**
|
|
1046
1053
|
* The <defs> SVG element is used to store graphical objects that will be used at a later time. Objects created inside a <defs> element are not rendered directly. To display them you have to reference them (with a <use> element for example).
|
|
1047
1054
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/defs
|
|
1048
1055
|
*
|
|
1049
|
-
* @type {
|
|
1056
|
+
* @type {ElementHelper}
|
|
1050
1057
|
*/
|
|
1051
|
-
export const defs:
|
|
1058
|
+
export const defs: ElementHelper;
|
|
1052
1059
|
/**
|
|
1053
1060
|
* The <g> SVG element is a container used to group other SVG elements.
|
|
1054
1061
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/g
|
|
1055
1062
|
*
|
|
1056
|
-
* @type {
|
|
1063
|
+
* @type {ElementHelper}
|
|
1057
1064
|
*/
|
|
1058
|
-
export const g:
|
|
1065
|
+
export const g: ElementHelper;
|
|
1059
1066
|
/**
|
|
1060
1067
|
* The <marker> SVG element defines a graphic used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element.
|
|
1061
1068
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/marker
|
|
1062
1069
|
*
|
|
1063
|
-
* @type {
|
|
1070
|
+
* @type {ElementHelper}
|
|
1064
1071
|
*/
|
|
1065
|
-
export const marker:
|
|
1072
|
+
export const marker: ElementHelper;
|
|
1066
1073
|
/**
|
|
1067
1074
|
* The <mask> SVG element defines a mask for compositing the current object into the background. A mask is used/referenced using the mask property and CSS mask-image property.
|
|
1068
1075
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mask
|
|
1069
1076
|
*
|
|
1070
|
-
* @type {
|
|
1077
|
+
* @type {ElementHelper}
|
|
1071
1078
|
*/
|
|
1072
|
-
export const mask:
|
|
1079
|
+
export const mask: ElementHelper;
|
|
1073
1080
|
/**
|
|
1074
1081
|
* The <pattern> SVG element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
|
|
1075
1082
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/pattern
|
|
1076
1083
|
*
|
|
1077
|
-
* @type {
|
|
1084
|
+
* @type {ElementHelper}
|
|
1078
1085
|
*/
|
|
1079
|
-
export const pattern:
|
|
1086
|
+
export const pattern: ElementHelper;
|
|
1080
1087
|
/**
|
|
1081
1088
|
* The <svg> SVG element is a container that defines a new coordinate system and viewport. It is used as the outermost element of SVG documents, but it can also be used to embed an SVG fragment inside an SVG or HTML document.
|
|
1082
1089
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/svg
|
|
1083
1090
|
*
|
|
1084
|
-
* @type {
|
|
1091
|
+
* @type {ElementHelper}
|
|
1085
1092
|
*/
|
|
1086
|
-
export const svg:
|
|
1093
|
+
export const svg: ElementHelper;
|
|
1087
1094
|
/**
|
|
1088
1095
|
* The <switch> SVG element evaluates any requiredFeatures, requiredExtensions and systemLanguage attributes on its direct child elements in order, and then renders the first child where these attributes evaluate to true.
|
|
1089
1096
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/switch
|
|
1090
1097
|
*
|
|
1091
|
-
* @type {
|
|
1098
|
+
* @type {ElementHelper}
|
|
1092
1099
|
*/
|
|
1093
|
-
export const svgswitch:
|
|
1100
|
+
export const svgswitch: ElementHelper;
|
|
1094
1101
|
/**
|
|
1095
1102
|
* The <symbol> SVG element is used to define graphical template objects which can be instantiated by a <use> element.
|
|
1096
1103
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/symbol
|
|
1097
1104
|
*
|
|
1098
|
-
* @type {
|
|
1105
|
+
* @type {ElementHelper}
|
|
1099
1106
|
*/
|
|
1100
|
-
export const symbol:
|
|
1107
|
+
export const symbol: ElementHelper;
|
|
1101
1108
|
/**
|
|
1102
1109
|
* The <use> element takes nodes from within an SVG document, and duplicates them somewhere else. The effect is the same as if the nodes were deeply cloned into a non-exposed DOM, then pasted where the <use> element is, much like cloned <template> elements.
|
|
1103
1110
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use
|
|
1104
1111
|
*
|
|
1105
|
-
* @type {
|
|
1112
|
+
* @type {ElementHelper}
|
|
1106
1113
|
*/
|
|
1107
|
-
export const use:
|
|
1114
|
+
export const use: ElementHelper;
|
|
1108
1115
|
/**
|
|
1109
1116
|
* The <desc> SVG element provides an accessible, long-text description of any SVG container element or graphics element.
|
|
1110
1117
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/desc
|
|
1111
1118
|
*
|
|
1112
|
-
* @type {
|
|
1119
|
+
* @type {ElementHelper}
|
|
1113
1120
|
*/
|
|
1114
|
-
export const desc:
|
|
1121
|
+
export const desc: ElementHelper;
|
|
1115
1122
|
/**
|
|
1116
1123
|
* The <metadata> SVG element adds metadata to SVG content. Metadata is structured information about data. The contents of <metadata> should be elements from other XML namespaces such as RDF, FOAF, etc.
|
|
1117
1124
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/metadata
|
|
1118
1125
|
*
|
|
1119
|
-
* @type {
|
|
1126
|
+
* @type {ElementHelper}
|
|
1120
1127
|
*/
|
|
1121
|
-
export const metadata:
|
|
1128
|
+
export const metadata: ElementHelper;
|
|
1122
1129
|
/**
|
|
1123
1130
|
* The <filter> SVG element defines a custom filter effect by grouping atomic filter primitives. It is never rendered itself, but must be used by the filter attribute on SVG elements, or the filter CSS property for SVG/HTML elements.
|
|
1124
1131
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/filter
|
|
1125
1132
|
*
|
|
1126
|
-
* @type {
|
|
1133
|
+
* @type {ElementHelper}
|
|
1127
1134
|
*/
|
|
1128
|
-
export const filter:
|
|
1135
|
+
export const filter: ElementHelper;
|
|
1129
1136
|
/**
|
|
1130
1137
|
* The <feBlend> SVG filter primitive composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the mode attribute.
|
|
1131
1138
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feBlend
|
|
1132
1139
|
*
|
|
1133
|
-
* @type {
|
|
1140
|
+
* @type {ElementHelper}
|
|
1134
1141
|
*/
|
|
1135
|
-
export const feBlend:
|
|
1142
|
+
export const feBlend: ElementHelper;
|
|
1136
1143
|
/**
|
|
1137
1144
|
* The <feColorMatrix> SVG filter element changes colors based on a transformation matrix. Every pixel's color value [R,G,B,A] is matrix multiplied by a 5 by 5 color matrix to create new color [R',G',B',A'].
|
|
1138
1145
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feColorMatrix
|
|
1139
1146
|
*
|
|
1140
|
-
* @type {
|
|
1147
|
+
* @type {ElementHelper}
|
|
1141
1148
|
*/
|
|
1142
|
-
export const feColorMatrix:
|
|
1149
|
+
export const feColorMatrix: ElementHelper;
|
|
1143
1150
|
/**
|
|
1144
1151
|
* The <feComponentTransfer> SVG filter primitive performs color-component-wise remapping of data for each pixel. It allows operations like brightness adjustment, contrast adjustment, color balance or thresholding.
|
|
1145
1152
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComponentTransfer
|
|
1146
1153
|
*
|
|
1147
|
-
* @type {
|
|
1154
|
+
* @type {ElementHelper}
|
|
1148
1155
|
*/
|
|
1149
|
-
export const feComponentTransfer:
|
|
1156
|
+
export const feComponentTransfer: ElementHelper;
|
|
1150
1157
|
/**
|
|
1151
1158
|
* The <feComposite> SVG filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: over, in, atop, out, xor, lighter, or arithmetic.
|
|
1152
1159
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComposite
|
|
1153
1160
|
*
|
|
1154
|
-
* @type {
|
|
1161
|
+
* @type {ElementHelper}
|
|
1155
1162
|
*/
|
|
1156
|
-
export const feComposite:
|
|
1163
|
+
export const feComposite: ElementHelper;
|
|
1157
1164
|
/**
|
|
1158
1165
|
* The <feConvolveMatrix> SVG filter primitive applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce a resulting image. A wide variety of imaging operations can be achieved through convolutions, including blurring, edge detection, sharpening, embossing and beveling.
|
|
1159
1166
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feConvolveMatrix
|
|
1160
1167
|
*
|
|
1161
|
-
* @type {
|
|
1168
|
+
* @type {ElementHelper}
|
|
1162
1169
|
*/
|
|
1163
|
-
export const feConvolveMatrix:
|
|
1170
|
+
export const feConvolveMatrix: ElementHelper;
|
|
1164
1171
|
/**
|
|
1165
1172
|
* The <feDiffuseLighting> SVG filter primitive lights an image using the alpha channel as a bump map. The resulting image, which is an RGBA opaque image, depends on the light color, light position and surface geometry of the input bump map.
|
|
1166
1173
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDiffuseLighting
|
|
1167
1174
|
*
|
|
1168
|
-
* @type {
|
|
1175
|
+
* @type {ElementHelper}
|
|
1169
1176
|
*/
|
|
1170
|
-
export const feDiffuseLighting:
|
|
1177
|
+
export const feDiffuseLighting: ElementHelper;
|
|
1171
1178
|
/**
|
|
1172
1179
|
* The <feDisplacementMap> SVG filter primitive uses the pixel values from the image from in2 to spatially displace the image from in.
|
|
1173
1180
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDisplacementMap
|
|
1174
1181
|
*
|
|
1175
|
-
* @type {
|
|
1182
|
+
* @type {ElementHelper}
|
|
1176
1183
|
*/
|
|
1177
|
-
export const feDisplacementMap:
|
|
1184
|
+
export const feDisplacementMap: ElementHelper;
|
|
1178
1185
|
/**
|
|
1179
1186
|
* The <feDistantLight> SVG filter primitive defines a distant light source that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
|
|
1180
1187
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDistantLight
|
|
1181
1188
|
*
|
|
1182
|
-
* @type {
|
|
1189
|
+
* @type {ElementHelper}
|
|
1183
1190
|
*/
|
|
1184
|
-
export const feDistantLight:
|
|
1191
|
+
export const feDistantLight: ElementHelper;
|
|
1185
1192
|
/**
|
|
1186
1193
|
* The <feDropShadow> SVG filter primitive creates a drop shadow of the input image. It can only be used inside a <filter> element.
|
|
1187
1194
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDropShadow
|
|
1188
1195
|
*
|
|
1189
|
-
* @type {
|
|
1196
|
+
* @type {ElementHelper}
|
|
1190
1197
|
*/
|
|
1191
|
-
export const feDropShadow:
|
|
1198
|
+
export const feDropShadow: ElementHelper;
|
|
1192
1199
|
/**
|
|
1193
1200
|
* The <feFlood> SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color and flood-opacity.
|
|
1194
1201
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFlood
|
|
1195
1202
|
*
|
|
1196
|
-
* @type {
|
|
1203
|
+
* @type {ElementHelper}
|
|
1197
1204
|
*/
|
|
1198
|
-
export const feFlood:
|
|
1205
|
+
export const feFlood: ElementHelper;
|
|
1199
1206
|
/**
|
|
1200
1207
|
* The <feFuncA> SVG filter primitive defines the transfer function for the alpha component of the input graphic of its parent <feComponentTransfer> element.
|
|
1201
1208
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncA
|
|
1202
1209
|
*
|
|
1203
|
-
* @type {
|
|
1210
|
+
* @type {ElementHelper}
|
|
1204
1211
|
*/
|
|
1205
|
-
export const feFuncA:
|
|
1212
|
+
export const feFuncA: ElementHelper;
|
|
1206
1213
|
/**
|
|
1207
1214
|
* The <feFuncB> SVG filter primitive defines the transfer function for the blue component of the input graphic of its parent <feComponentTransfer> element.
|
|
1208
1215
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncB
|
|
1209
1216
|
*
|
|
1210
|
-
* @type {
|
|
1217
|
+
* @type {ElementHelper}
|
|
1211
1218
|
*/
|
|
1212
|
-
export const feFuncB:
|
|
1219
|
+
export const feFuncB: ElementHelper;
|
|
1213
1220
|
/**
|
|
1214
1221
|
* The <feFuncG> SVG filter primitive defines the transfer function for the green component of the input graphic of its parent <feComponentTransfer> element.
|
|
1215
1222
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncG
|
|
1216
1223
|
*
|
|
1217
|
-
* @type {
|
|
1224
|
+
* @type {ElementHelper}
|
|
1218
1225
|
*/
|
|
1219
|
-
export const feFuncG:
|
|
1226
|
+
export const feFuncG: ElementHelper;
|
|
1220
1227
|
/**
|
|
1221
1228
|
* The <feFuncR> SVG filter primitive defines the transfer function for the red component of the input graphic of its parent <feComponentTransfer> element.
|
|
1222
1229
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncR
|
|
1223
1230
|
*
|
|
1224
|
-
* @type {
|
|
1231
|
+
* @type {ElementHelper}
|
|
1225
1232
|
*/
|
|
1226
|
-
export const feFuncR:
|
|
1233
|
+
export const feFuncR: ElementHelper;
|
|
1227
1234
|
/**
|
|
1228
1235
|
* The <feGaussianBlur> SVG filter primitive blurs the input image by the amount specified in stdDeviation, which defines the bell-curve.
|
|
1229
1236
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feGaussianBlur
|
|
1230
1237
|
*
|
|
1231
|
-
* @type {
|
|
1238
|
+
* @type {ElementHelper}
|
|
1232
1239
|
*/
|
|
1233
|
-
export const feGaussianBlur:
|
|
1240
|
+
export const feGaussianBlur: ElementHelper;
|
|
1234
1241
|
/**
|
|
1235
1242
|
* The <feImage> SVG filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an SVG image, it is rasterized.)
|
|
1236
1243
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feImage
|
|
1237
1244
|
*
|
|
1238
|
-
* @type {
|
|
1245
|
+
* @type {ElementHelper}
|
|
1239
1246
|
*/
|
|
1240
|
-
export const feImage:
|
|
1247
|
+
export const feImage: ElementHelper;
|
|
1241
1248
|
/**
|
|
1242
1249
|
* The <feMerge> SVG element allows filter effects to be applied concurrently instead of sequentially. This is achieved by other filters storing their output via the result attribute and then accessing it in a <feMergeNode> child.
|
|
1243
1250
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMerge
|
|
1244
1251
|
*
|
|
1245
|
-
* @type {
|
|
1252
|
+
* @type {ElementHelper}
|
|
1246
1253
|
*/
|
|
1247
|
-
export const feMerge:
|
|
1254
|
+
export const feMerge: ElementHelper;
|
|
1248
1255
|
/**
|
|
1249
1256
|
* The <feMergeNode> SVG takes the result of another filter to be processed by its parent <feMerge>.
|
|
1250
1257
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMergeNode
|
|
1251
1258
|
*
|
|
1252
|
-
* @type {
|
|
1259
|
+
* @type {ElementHelper}
|
|
1253
1260
|
*/
|
|
1254
|
-
export const feMergeNode:
|
|
1261
|
+
export const feMergeNode: ElementHelper;
|
|
1255
1262
|
/**
|
|
1256
1263
|
* The <feMorphology> SVG filter primitive is used to erode or dilate the input image. Its usefulness lies especially in fattening or thinning effects.
|
|
1257
1264
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMorphology
|
|
1258
1265
|
*
|
|
1259
|
-
* @type {
|
|
1266
|
+
* @type {ElementHelper}
|
|
1260
1267
|
*/
|
|
1261
|
-
export const feMorphology:
|
|
1268
|
+
export const feMorphology: ElementHelper;
|
|
1262
1269
|
/**
|
|
1263
1270
|
* The <feOffset> SVG filter primitive enables offsetting an input image relative to its current position. The input image as a whole is offset by the values specified in the dx and dy attributes.
|
|
1264
1271
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feOffset
|
|
1265
1272
|
*
|
|
1266
|
-
* @type {
|
|
1273
|
+
* @type {ElementHelper}
|
|
1267
1274
|
*/
|
|
1268
|
-
export const feOffset:
|
|
1275
|
+
export const feOffset: ElementHelper;
|
|
1269
1276
|
/**
|
|
1270
1277
|
* The <fePointLight> SVG filter primitive defines a light source which allows to create a point light effect. It that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
|
|
1271
1278
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/fePointLight
|
|
1272
1279
|
*
|
|
1273
|
-
* @type {
|
|
1280
|
+
* @type {ElementHelper}
|
|
1274
1281
|
*/
|
|
1275
|
-
export const fePointLight:
|
|
1282
|
+
export const fePointLight: ElementHelper;
|
|
1276
1283
|
/**
|
|
1277
1284
|
* The <feSpecularLighting> SVG filter primitive lights a source graphic using the alpha channel as a bump map. The resulting image is an RGBA image based on the light color. The lighting calculation follows the standard specular component of the Phong lighting model. The resulting image depends on the light color, light position and surface geometry of the input bump map. The result of the lighting calculation is added. The filter primitive assumes that the viewer is at infinity in the z direction.
|
|
1278
1285
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpecularLighting
|
|
1279
1286
|
*
|
|
1280
|
-
* @type {
|
|
1287
|
+
* @type {ElementHelper}
|
|
1281
1288
|
*/
|
|
1282
|
-
export const feSpecularLighting:
|
|
1289
|
+
export const feSpecularLighting: ElementHelper;
|
|
1283
1290
|
/**
|
|
1284
1291
|
* The <feSpotLight> SVG filter primitive defines a light source that can be used to create a spotlight effect. It is used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
|
|
1285
1292
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpotLight
|
|
1286
1293
|
*
|
|
1287
|
-
* @type {
|
|
1294
|
+
* @type {ElementHelper}
|
|
1288
1295
|
*/
|
|
1289
|
-
export const feSpotLight:
|
|
1296
|
+
export const feSpotLight: ElementHelper;
|
|
1290
1297
|
/**
|
|
1291
1298
|
* The <feTile> SVG filter primitive allows to fill a target rectangle with a repeated, tiled pattern of an input image. The effect is similar to the one of a <pattern>.
|
|
1292
1299
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTile
|
|
1293
1300
|
*
|
|
1294
|
-
* @type {
|
|
1301
|
+
* @type {ElementHelper}
|
|
1295
1302
|
*/
|
|
1296
|
-
export const feTile:
|
|
1303
|
+
export const feTile: ElementHelper;
|
|
1297
1304
|
/**
|
|
1298
1305
|
* The <feTurbulence> SVG filter primitive creates an image using the Perlin turbulence function. It allows the synthesis of artificial textures like clouds or marble. The resulting image will fill the entire filter primitive subregion.
|
|
1299
1306
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTurbulence
|
|
1300
1307
|
*
|
|
1301
|
-
* @type {
|
|
1308
|
+
* @type {ElementHelper}
|
|
1302
1309
|
*/
|
|
1303
|
-
export const feTurbulence:
|
|
1310
|
+
export const feTurbulence: ElementHelper;
|
|
1304
1311
|
/**
|
|
1305
1312
|
* The <linearGradient> SVG element lets authors define linear gradients to apply to other SVG elements.
|
|
1306
1313
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/linearGradient
|
|
1307
1314
|
*
|
|
1308
|
-
* @type {
|
|
1315
|
+
* @type {ElementHelper}
|
|
1309
1316
|
*/
|
|
1310
|
-
export const linearGradient:
|
|
1317
|
+
export const linearGradient: ElementHelper;
|
|
1311
1318
|
/**
|
|
1312
1319
|
* The <radialGradient> SVG element lets authors define radial gradients that can be applied to fill or stroke of graphical elements.
|
|
1313
1320
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/radialGradient
|
|
1314
1321
|
*
|
|
1315
|
-
* @type {
|
|
1322
|
+
* @type {ElementHelper}
|
|
1316
1323
|
*/
|
|
1317
|
-
export const radialGradient:
|
|
1324
|
+
export const radialGradient: ElementHelper;
|
|
1318
1325
|
/**
|
|
1319
1326
|
* The <stop> SVG element defines a color and its position to use on a gradient. This element is always a child of a <linearGradient> or <radialGradient> element.
|
|
1320
1327
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/stop
|
|
1321
1328
|
*
|
|
1322
|
-
* @type {
|
|
1329
|
+
* @type {ElementHelper}
|
|
1323
1330
|
*/
|
|
1324
|
-
export const stop:
|
|
1331
|
+
export const stop: ElementHelper;
|
|
1325
1332
|
/**
|
|
1326
1333
|
* The <foreignObject> SVG element includes elements from a different XML namespace. In the context of a browser, it is most likely (X)HTML.
|
|
1327
1334
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/foreignObject
|
|
1328
1335
|
*
|
|
1329
|
-
* @type {
|
|
1336
|
+
* @type {ElementHelper}
|
|
1330
1337
|
*/
|
|
1331
|
-
export const foreignObject:
|
|
1338
|
+
export const foreignObject: ElementHelper;
|
|
1332
1339
|
/**
|
|
1333
1340
|
* The <text> SVG element draws a graphics element consisting of text. It's possible to apply a gradient, pattern, clipping path, mask, or filter to <text>, like any other SVG graphics element.
|
|
1334
1341
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/text
|
|
1335
1342
|
*
|
|
1336
|
-
* @type {
|
|
1343
|
+
* @type {ElementHelper}
|
|
1337
1344
|
*/
|
|
1338
|
-
export const text:
|
|
1345
|
+
export const text: ElementHelper;
|
|
1339
1346
|
/**
|
|
1340
1347
|
* The <textPath> SVG element is used to render text along the shape of a <path> element. The text must be enclosed in the <textPath> element and its href attribute is used to reference the desired <path>.
|
|
1341
1348
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/textPath
|
|
1342
1349
|
*
|
|
1343
|
-
* @type {
|
|
1350
|
+
* @type {ElementHelper}
|
|
1344
1351
|
*/
|
|
1345
|
-
export const textPath:
|
|
1352
|
+
export const textPath: ElementHelper;
|
|
1346
1353
|
/**
|
|
1347
1354
|
* The <tspan> SVG element defines a subtext within a <text> element or another <tspan> element. It allows for adjustment of the style and/or position of that subtext as needed.
|
|
1348
1355
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/tspan
|
|
1349
1356
|
*
|
|
1350
|
-
* @type {
|
|
1357
|
+
* @type {ElementHelper}
|
|
1351
1358
|
*/
|
|
1352
|
-
export const tspan:
|
|
1359
|
+
export const tspan: ElementHelper;
|
|
1353
1360
|
/**
|
|
1354
1361
|
* The <view> SVG element defines a particular view of an SVG document. A specific view can be displayed by referencing the <view> element's id as the target fragment of a URL.
|
|
1355
1362
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/view
|
|
1356
1363
|
*
|
|
1357
|
-
* @type {
|
|
1364
|
+
* @type {ElementHelper}
|
|
1358
1365
|
*/
|
|
1359
|
-
export const view:
|
|
1366
|
+
export const view: ElementHelper;
|
|
1367
|
+
export type Props = Record<string, any>;
|
|
1368
|
+
export type Child = VNode | string | number | boolean | null | undefined;
|
|
1360
1369
|
/**
|
|
1361
1370
|
* A map of supported HTML and SVG element helpers.
|
|
1362
1371
|
*
|
|
@@ -1378,4 +1387,8 @@ export const view: (props?: object, ...children: (string | number | Node)[]) =>
|
|
|
1378
1387
|
* The following helpers are included:
|
|
1379
1388
|
* `div`, `span`, `button`, `svg`, `circle`, etc.
|
|
1380
1389
|
*/
|
|
1381
|
-
export type
|
|
1390
|
+
export type VNode = [tag: string, props: Props, ...children: Child[]];
|
|
1391
|
+
export type ElementHelper = {
|
|
1392
|
+
(props: Props, ...children: Child[]): VNode;
|
|
1393
|
+
(...children: Child[]): VNode;
|
|
1394
|
+
};
|