@pfern/elements 0.1.11 → 0.2.1
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/LICENSE +11 -11
- package/README.md +292 -62
- package/elements.js +4 -1942
- package/env.d.ts +24 -0
- package/mathml.js +1 -0
- package/package.json +20 -23
- package/src/core/elements.js +513 -0
- package/src/core/events.js +143 -0
- package/src/core/props.js +183 -0
- package/src/core/tags.js +225 -0
- package/src/core/tick.js +116 -0
- package/src/core/types.js +696 -0
- package/src/helpers.js +73 -0
- package/src/html.js +996 -0
- package/src/mathml.js +340 -0
- package/src/router.js +51 -0
- package/src/ssr.js +173 -0
- package/src/svg.js +407 -0
- package/types/elements.d.ts +4 -1394
- package/types/mathml.d.ts +1 -0
- package/types/src/core/elements.d.ts +29 -0
- package/types/src/core/events.d.ts +15 -0
- package/types/src/core/props.d.ts +9 -0
- package/types/src/core/tags.d.ts +4 -0
- package/types/src/core/tick.d.ts +5 -0
- package/types/src/core/types.d.ts +507 -0
- package/types/src/helpers.d.ts +5 -0
- package/types/src/html.d.ts +802 -0
- package/types/src/mathml.d.ts +264 -0
- package/types/src/router.d.ts +4 -0
- package/types/src/ssr.d.ts +3 -0
- package/types/src/svg.d.ts +348 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <math>
|
|
3
|
+
* The root element of a MathML expression.
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/math
|
|
5
|
+
*/
|
|
6
|
+
export const math: import("./core/types.js").ElementsElementHelper<any>;
|
|
7
|
+
/**
|
|
8
|
+
* <mrow>
|
|
9
|
+
* Groups sub-expressions without introducing visible separators.
|
|
10
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mrow
|
|
11
|
+
*/
|
|
12
|
+
export const mrow: import("./core/types.js").ElementsElementHelper<any>;
|
|
13
|
+
/**
|
|
14
|
+
* <mi>
|
|
15
|
+
* Identifier (variable/function name).
|
|
16
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi
|
|
17
|
+
*/
|
|
18
|
+
export const mi: import("./core/types.js").ElementsElementHelper<any>;
|
|
19
|
+
/**
|
|
20
|
+
* <mo>
|
|
21
|
+
* Operator (e.g. "+", "→", parentheses).
|
|
22
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo
|
|
23
|
+
*/
|
|
24
|
+
export const mo: import("./core/types.js").ElementsElementHelper<any>;
|
|
25
|
+
/**
|
|
26
|
+
* <mn>
|
|
27
|
+
* Number literal.
|
|
28
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mn
|
|
29
|
+
*/
|
|
30
|
+
export const mn: import("./core/types.js").ElementsElementHelper<any>;
|
|
31
|
+
/**
|
|
32
|
+
* <mtext>
|
|
33
|
+
* Text inside math layout.
|
|
34
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtext
|
|
35
|
+
*/
|
|
36
|
+
export const mtext: import("./core/types.js").ElementsElementHelper<any>;
|
|
37
|
+
/**
|
|
38
|
+
* <mspace>
|
|
39
|
+
* Spacing control.
|
|
40
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mspace
|
|
41
|
+
*/
|
|
42
|
+
export const mspace: import("./core/types.js").ElementsElementHelper<any>;
|
|
43
|
+
/**
|
|
44
|
+
* <mstyle>
|
|
45
|
+
* Styling wrapper for MathML subtree.
|
|
46
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle
|
|
47
|
+
*/
|
|
48
|
+
export const mstyle: import("./core/types.js").ElementsElementHelper<any>;
|
|
49
|
+
/**
|
|
50
|
+
* <menclose>
|
|
51
|
+
* Encloses content (e.g. boxes, circles).
|
|
52
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/menclose
|
|
53
|
+
*/
|
|
54
|
+
export const menclose: import("./core/types.js").ElementsElementHelper<any>;
|
|
55
|
+
/**
|
|
56
|
+
* <mfenced>
|
|
57
|
+
* Convenience fencing wrapper (parentheses, brackets).
|
|
58
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfenced
|
|
59
|
+
*/
|
|
60
|
+
export const mfenced: import("./core/types.js").ElementsElementHelper<any>;
|
|
61
|
+
/**
|
|
62
|
+
* <msup>
|
|
63
|
+
* Superscript.
|
|
64
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msup
|
|
65
|
+
*/
|
|
66
|
+
export const msup: import("./core/types.js").ElementsElementHelper<any>;
|
|
67
|
+
/**
|
|
68
|
+
* <msub>
|
|
69
|
+
* Subscript.
|
|
70
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msub
|
|
71
|
+
*/
|
|
72
|
+
export const msub: import("./core/types.js").ElementsElementHelper<any>;
|
|
73
|
+
/**
|
|
74
|
+
* <msubsup>
|
|
75
|
+
* Subscript + superscript.
|
|
76
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup
|
|
77
|
+
*/
|
|
78
|
+
export const msubsup: import("./core/types.js").ElementsElementHelper<any>;
|
|
79
|
+
/**
|
|
80
|
+
* <mfrac>
|
|
81
|
+
* Fraction.
|
|
82
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac
|
|
83
|
+
*/
|
|
84
|
+
export const mfrac: import("./core/types.js").ElementsElementHelper<any>;
|
|
85
|
+
/**
|
|
86
|
+
* <msqrt>
|
|
87
|
+
* Square root.
|
|
88
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msqrt
|
|
89
|
+
*/
|
|
90
|
+
export const msqrt: import("./core/types.js").ElementsElementHelper<any>;
|
|
91
|
+
/**
|
|
92
|
+
* <mroot>
|
|
93
|
+
* Root with explicit index.
|
|
94
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mroot
|
|
95
|
+
*/
|
|
96
|
+
export const mroot: import("./core/types.js").ElementsElementHelper<any>;
|
|
97
|
+
/**
|
|
98
|
+
* <munder>
|
|
99
|
+
* Under-script.
|
|
100
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/munder
|
|
101
|
+
*/
|
|
102
|
+
export const munder: import("./core/types.js").ElementsElementHelper<any>;
|
|
103
|
+
/**
|
|
104
|
+
* <mover>
|
|
105
|
+
* Over-script.
|
|
106
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mover
|
|
107
|
+
*/
|
|
108
|
+
export const mover: import("./core/types.js").ElementsElementHelper<any>;
|
|
109
|
+
/**
|
|
110
|
+
* <munderover>
|
|
111
|
+
* Under + over script.
|
|
112
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/munderover
|
|
113
|
+
*/
|
|
114
|
+
export const munderover: import("./core/types.js").ElementsElementHelper<any>;
|
|
115
|
+
/**
|
|
116
|
+
* <mtable>
|
|
117
|
+
* Table layout.
|
|
118
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable
|
|
119
|
+
*/
|
|
120
|
+
export const mtable: import("./core/types.js").ElementsElementHelper<any>;
|
|
121
|
+
/**
|
|
122
|
+
* <mtr>
|
|
123
|
+
* Table row.
|
|
124
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr
|
|
125
|
+
*/
|
|
126
|
+
export const mtr: import("./core/types.js").ElementsElementHelper<any>;
|
|
127
|
+
/**
|
|
128
|
+
* <mtd>
|
|
129
|
+
* Table cell.
|
|
130
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd
|
|
131
|
+
*/
|
|
132
|
+
export const mtd: import("./core/types.js").ElementsElementHelper<any>;
|
|
133
|
+
/**
|
|
134
|
+
* <semantics>
|
|
135
|
+
* Attach semantic annotations to a presentation tree.
|
|
136
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics
|
|
137
|
+
*/
|
|
138
|
+
export const semantics: import("./core/types.js").ElementsElementHelper<any>;
|
|
139
|
+
/**
|
|
140
|
+
* <annotation>
|
|
141
|
+
* A textual annotation inside <semantics>.
|
|
142
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/annotation
|
|
143
|
+
*/
|
|
144
|
+
export const annotation: import("./core/types.js").ElementsElementHelper<any>;
|
|
145
|
+
/**
|
|
146
|
+
* <annotation-xml>
|
|
147
|
+
* An XML annotation inside <semantics>.
|
|
148
|
+
*
|
|
149
|
+
* Exported as `annotationXml` because of the dash in the tag name.
|
|
150
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/annotation-xml
|
|
151
|
+
*/
|
|
152
|
+
export const annotationXml: import("./core/types.js").ElementsElementHelper<any>;
|
|
153
|
+
/**
|
|
154
|
+
* <apply>
|
|
155
|
+
* Content MathML application node: first child is the operator, remaining
|
|
156
|
+
* children are arguments.
|
|
157
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/apply
|
|
158
|
+
*/
|
|
159
|
+
export const apply: import("./core/types.js").ElementsElementHelper<any>;
|
|
160
|
+
/**
|
|
161
|
+
* <ci>
|
|
162
|
+
* Content MathML identifier.
|
|
163
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ci
|
|
164
|
+
*/
|
|
165
|
+
export const ci: import("./core/types.js").ElementsElementHelper<any>;
|
|
166
|
+
/**
|
|
167
|
+
* <cn>
|
|
168
|
+
* Content MathML number.
|
|
169
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/cn
|
|
170
|
+
*/
|
|
171
|
+
export const cn: import("./core/types.js").ElementsElementHelper<any>;
|
|
172
|
+
/**
|
|
173
|
+
* <csymbol>
|
|
174
|
+
* Content MathML symbol (often with a content dictionary via `cd`).
|
|
175
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/csymbol
|
|
176
|
+
*/
|
|
177
|
+
export const csymbol: import("./core/types.js").ElementsElementHelper<any>;
|
|
178
|
+
/**
|
|
179
|
+
* <bind>
|
|
180
|
+
* Content MathML binding node (e.g. lambda).
|
|
181
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/bind
|
|
182
|
+
*/
|
|
183
|
+
export const bind: import("./core/types.js").ElementsElementHelper<any>;
|
|
184
|
+
/**
|
|
185
|
+
* <bvar>
|
|
186
|
+
* Bound variable (used under <bind>).
|
|
187
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/bvar
|
|
188
|
+
*/
|
|
189
|
+
export const bvar: import("./core/types.js").ElementsElementHelper<any>;
|
|
190
|
+
/**
|
|
191
|
+
* <lambda>
|
|
192
|
+
* Lambda binder operator (typically inside <bind>).
|
|
193
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/lambda
|
|
194
|
+
*/
|
|
195
|
+
export const lambda: import("./core/types.js").ElementsElementHelper<any>;
|
|
196
|
+
/**
|
|
197
|
+
* <set>
|
|
198
|
+
* Content MathML set constructor (often under <apply>).
|
|
199
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/set
|
|
200
|
+
*/
|
|
201
|
+
export const set: import("./core/types.js").ElementsElementHelper<any>;
|
|
202
|
+
/**
|
|
203
|
+
* <list>
|
|
204
|
+
* Content MathML list constructor (often under <apply>).
|
|
205
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/list
|
|
206
|
+
*/
|
|
207
|
+
export const list: import("./core/types.js").ElementsElementHelper<any>;
|
|
208
|
+
/**
|
|
209
|
+
* <vector>
|
|
210
|
+
* Content MathML vector constructor.
|
|
211
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/vector
|
|
212
|
+
*/
|
|
213
|
+
export const vector: import("./core/types.js").ElementsElementHelper<any>;
|
|
214
|
+
/**
|
|
215
|
+
* <matrix>
|
|
216
|
+
* Content MathML matrix constructor.
|
|
217
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/matrix
|
|
218
|
+
*/
|
|
219
|
+
export const matrix: import("./core/types.js").ElementsElementHelper<any>;
|
|
220
|
+
/**
|
|
221
|
+
* <matrixrow>
|
|
222
|
+
* Content MathML matrix row.
|
|
223
|
+
* https://developer.mozilla.org/en-US/docs/Web/MathML/Element/matrixrow
|
|
224
|
+
*/
|
|
225
|
+
export const matrixrow: import("./core/types.js").ElementsElementHelper<any>;
|
|
226
|
+
export namespace mathml {
|
|
227
|
+
export { math };
|
|
228
|
+
export { mrow };
|
|
229
|
+
export { mi };
|
|
230
|
+
export { mo };
|
|
231
|
+
export { mn };
|
|
232
|
+
export { mtext };
|
|
233
|
+
export { mspace };
|
|
234
|
+
export { mstyle };
|
|
235
|
+
export { menclose };
|
|
236
|
+
export { mfenced };
|
|
237
|
+
export { msup };
|
|
238
|
+
export { msub };
|
|
239
|
+
export { msubsup };
|
|
240
|
+
export { mfrac };
|
|
241
|
+
export { msqrt };
|
|
242
|
+
export { mroot };
|
|
243
|
+
export { munder };
|
|
244
|
+
export { mover };
|
|
245
|
+
export { munderover };
|
|
246
|
+
export { mtable };
|
|
247
|
+
export { mtr };
|
|
248
|
+
export { mtd };
|
|
249
|
+
export { semantics };
|
|
250
|
+
export { annotation };
|
|
251
|
+
export { annotationXml };
|
|
252
|
+
export { apply };
|
|
253
|
+
export { ci };
|
|
254
|
+
export { cn };
|
|
255
|
+
export { csymbol };
|
|
256
|
+
export { bind };
|
|
257
|
+
export { bvar };
|
|
258
|
+
export { lambda };
|
|
259
|
+
export { set };
|
|
260
|
+
export { list };
|
|
261
|
+
export { vector };
|
|
262
|
+
export { matrix };
|
|
263
|
+
export { matrixrow };
|
|
264
|
+
}
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG tag helpers.
|
|
3
|
+
*
|
|
4
|
+
* Like `src/html.js`, this module stays intentionally “flat”: one named export
|
|
5
|
+
* per SVG element with a short description for editor-first documentation.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The <animate> SVG element provides a way to animate an attribute of an element over time.
|
|
9
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animate
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export const animate: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
13
|
+
/**
|
|
14
|
+
* The <animateMotion> SVG element provides a way to define how an element moves along a motion path.
|
|
15
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateMotion
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export const animateMotion: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
19
|
+
/**
|
|
20
|
+
* The <animateTransform> SVG element animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing.
|
|
21
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateTransform
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export const animateTransform: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
25
|
+
/**
|
|
26
|
+
* 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.
|
|
27
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mpath
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export const mpath: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
31
|
+
/**
|
|
32
|
+
* The <set> SVG element provides a method of setting the value of an attribute for a specified duration.
|
|
33
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/set
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export const set: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
37
|
+
/**
|
|
38
|
+
* The <circle> SVG element is an SVG basic shape, used to draw circles based on a center point and a radius.
|
|
39
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/circle
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export const circle: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsCircleProps>;
|
|
43
|
+
/**
|
|
44
|
+
* 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.
|
|
45
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/ellipse
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export const ellipse: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
49
|
+
/**
|
|
50
|
+
* The <line> SVG element is an SVG basic shape used to create a line connecting two points.
|
|
51
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/line
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export const line: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsLineProps>;
|
|
55
|
+
/**
|
|
56
|
+
* The <path> SVG element is the generic element to define a shape. All the basic shapes can be created with a path element.
|
|
57
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/path
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export const path: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsPathProps>;
|
|
61
|
+
/**
|
|
62
|
+
* 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.
|
|
63
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polygon
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export const polygon: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
67
|
+
/**
|
|
68
|
+
* 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.
|
|
69
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/polyline
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export const polyline: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
73
|
+
/**
|
|
74
|
+
* 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.
|
|
75
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/rect
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export const rect: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsRectProps>;
|
|
79
|
+
/**
|
|
80
|
+
* 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).
|
|
81
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/defs
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
export const defs: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
85
|
+
/**
|
|
86
|
+
* The <g> SVG element is a container used to group other SVG elements.
|
|
87
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/g
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
export const g: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
91
|
+
/**
|
|
92
|
+
* The <marker> SVG element defines a graphic used for drawing arrowheads or polymarkers on a given <path>, <line>, <polyline> or <polygon> element.
|
|
93
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/marker
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export const marker: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/mask
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
export const mask: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
103
|
+
/**
|
|
104
|
+
* The <pattern> SVG element defines a graphics object which can be redrawn at repeated x- and y-coordinate intervals ("tiled") to cover an area.
|
|
105
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/pattern
|
|
106
|
+
*
|
|
107
|
+
*/
|
|
108
|
+
export const pattern: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
109
|
+
/**
|
|
110
|
+
* 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.
|
|
111
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/svg
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
export const svg: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsSvgProps>;
|
|
115
|
+
/**
|
|
116
|
+
* 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.
|
|
117
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/switch
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
export const svgswitch: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
121
|
+
/**
|
|
122
|
+
* The <symbol> SVG element is used to define graphical template objects which can be instantiated by a <use> element.
|
|
123
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/symbol
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
export const symbol: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
127
|
+
/**
|
|
128
|
+
* 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.
|
|
129
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/use
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export const use: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
133
|
+
/**
|
|
134
|
+
* The <desc> SVG element provides an accessible, long-text description of any SVG container element or graphics element.
|
|
135
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/desc
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
export const desc: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
139
|
+
/**
|
|
140
|
+
* 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.
|
|
141
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/metadata
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
export const metadata: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
145
|
+
/**
|
|
146
|
+
* 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.
|
|
147
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/filter
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
export const filter: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
151
|
+
/**
|
|
152
|
+
* 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.
|
|
153
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feBlend
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
export const feBlend: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
157
|
+
/**
|
|
158
|
+
* 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'].
|
|
159
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feColorMatrix
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
export const feColorMatrix: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
163
|
+
/**
|
|
164
|
+
* 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.
|
|
165
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComponentTransfer
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
export const feComponentTransfer: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
169
|
+
/**
|
|
170
|
+
* 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.
|
|
171
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feComposite
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
export const feComposite: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
175
|
+
/**
|
|
176
|
+
* 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.
|
|
177
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feConvolveMatrix
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
export const feConvolveMatrix: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
181
|
+
/**
|
|
182
|
+
* 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.
|
|
183
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDiffuseLighting
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
export const feDiffuseLighting: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
187
|
+
/**
|
|
188
|
+
* The <feDisplacementMap> SVG filter primitive uses the pixel values from the image from in2 to spatially displace the image from in.
|
|
189
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDisplacementMap
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
export const feDisplacementMap: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
193
|
+
/**
|
|
194
|
+
* The <feDistantLight> SVG filter primitive defines a distant light source that can be used within a lighting filter primitive: <feDiffuseLighting> or <feSpecularLighting>.
|
|
195
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDistantLight
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
export const feDistantLight: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
199
|
+
/**
|
|
200
|
+
* The <feDropShadow> SVG filter primitive creates a drop shadow of the input image. It can only be used inside a <filter> element.
|
|
201
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feDropShadow
|
|
202
|
+
*
|
|
203
|
+
*/
|
|
204
|
+
export const feDropShadow: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
205
|
+
/**
|
|
206
|
+
* The <feFlood> SVG filter primitive fills the filter subregion with the color and opacity defined by flood-color and flood-opacity.
|
|
207
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFlood
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
export const feFlood: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
211
|
+
/**
|
|
212
|
+
* The <feFuncA> SVG filter primitive defines the transfer function for the alpha component of the input graphic of its parent <feComponentTransfer> element.
|
|
213
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncA
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
export const feFuncA: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
217
|
+
/**
|
|
218
|
+
* The <feFuncB> SVG filter primitive defines the transfer function for the blue component of the input graphic of its parent <feComponentTransfer> element.
|
|
219
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncB
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
export const feFuncB: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
223
|
+
/**
|
|
224
|
+
* The <feFuncG> SVG filter primitive defines the transfer function for the green component of the input graphic of its parent <feComponentTransfer> element.
|
|
225
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncG
|
|
226
|
+
*
|
|
227
|
+
*/
|
|
228
|
+
export const feFuncG: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
229
|
+
/**
|
|
230
|
+
* The <feFuncR> SVG filter primitive defines the transfer function for the red component of the input graphic of its parent <feComponentTransfer> element.
|
|
231
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feFuncR
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
234
|
+
export const feFuncR: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
235
|
+
/**
|
|
236
|
+
* The <feGaussianBlur> SVG filter primitive blurs the input image by the amount specified in stdDeviation, which defines the bell-curve.
|
|
237
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feGaussianBlur
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
export const feGaussianBlur: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
241
|
+
/**
|
|
242
|
+
* 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.)
|
|
243
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feImage
|
|
244
|
+
*
|
|
245
|
+
*/
|
|
246
|
+
export const feImage: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
247
|
+
/**
|
|
248
|
+
* 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.
|
|
249
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMerge
|
|
250
|
+
*
|
|
251
|
+
*/
|
|
252
|
+
export const feMerge: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
253
|
+
/**
|
|
254
|
+
* The <feMergeNode> SVG takes the result of another filter to be processed by its parent <feMerge>.
|
|
255
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMergeNode
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
export const feMergeNode: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
259
|
+
/**
|
|
260
|
+
* The <feMorphology> SVG filter primitive is used to erode or dilate the input image. Its usefulness lies especially in fattening or thinning effects.
|
|
261
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feMorphology
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
264
|
+
export const feMorphology: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
265
|
+
/**
|
|
266
|
+
* 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.
|
|
267
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feOffset
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
export const feOffset: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
271
|
+
/**
|
|
272
|
+
* 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>.
|
|
273
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/fePointLight
|
|
274
|
+
*
|
|
275
|
+
*/
|
|
276
|
+
export const fePointLight: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
277
|
+
/**
|
|
278
|
+
* 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.
|
|
279
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpecularLighting
|
|
280
|
+
*
|
|
281
|
+
*/
|
|
282
|
+
export const feSpecularLighting: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
283
|
+
/**
|
|
284
|
+
* 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>.
|
|
285
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feSpotLight
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
288
|
+
export const feSpotLight: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
289
|
+
/**
|
|
290
|
+
* 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>.
|
|
291
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTile
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
294
|
+
export const feTile: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
295
|
+
/**
|
|
296
|
+
* 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.
|
|
297
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/feTurbulence
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
export const feTurbulence: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
301
|
+
/**
|
|
302
|
+
* The <linearGradient> SVG element lets authors define linear gradients to apply to other SVG elements.
|
|
303
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/linearGradient
|
|
304
|
+
*
|
|
305
|
+
*/
|
|
306
|
+
export const linearGradient: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
307
|
+
/**
|
|
308
|
+
* The <radialGradient> SVG element lets authors define radial gradients that can be applied to fill or stroke of graphical elements.
|
|
309
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/radialGradient
|
|
310
|
+
*
|
|
311
|
+
*/
|
|
312
|
+
export const radialGradient: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
313
|
+
/**
|
|
314
|
+
* 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.
|
|
315
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/stop
|
|
316
|
+
*
|
|
317
|
+
*/
|
|
318
|
+
export const stop: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
319
|
+
/**
|
|
320
|
+
* The <foreignObject> SVG element includes elements from a different XML namespace. In the context of a browser, it is most likely (X)HTML.
|
|
321
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/foreignObject
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
export const foreignObject: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
325
|
+
/**
|
|
326
|
+
* 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.
|
|
327
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/text
|
|
328
|
+
*
|
|
329
|
+
*/
|
|
330
|
+
export const text: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsSvgTextProps>;
|
|
331
|
+
/**
|
|
332
|
+
* 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>.
|
|
333
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/textPath
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
export const textPath: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
337
|
+
/**
|
|
338
|
+
* 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.
|
|
339
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/tspan
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
export const tspan: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|
|
343
|
+
/**
|
|
344
|
+
* 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.
|
|
345
|
+
* https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/view
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
export const view: import("./core/types.js").ElementsElementHelper<import("./core/types.js").ElementsProps>;
|