-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathjsx.ts
1121 lines (1038 loc) · 28.8 KB
/
jsx.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import Component, { ComponentConstructor } from "../component"
import { InputEvent, SubmitEvent, KeyEvent, ChangeEvent } from "./ws"
import { CSS } from "../css"
import { NestedArray } from "../helpers"
/* tslint:disable no-namespace */
export namespace JSX {
export interface Element<T = HTMLAttributes> {
nodeName: string | ComponentConstructor<any, any>
attributes: T
children: Child | NestedArray<Child>
}
export interface ComponentElement<T = HTMLAttributes> extends Element<T> {
nodeName: ComponentConstructor<any, any>
}
export interface NormalElement<T = HTMLAttributes> extends Element<T> {
nodeName: string
}
export interface ElementClass extends Component<any, any> {}
export interface ElementAttributesProperty {
props: {}
}
export interface ElementChildrenAttribute {
children: {}
}
// Everything below is taken from:
// https://github.com/ionic-team/stencil/blob/master/src/declarations/jsx.ts
export interface IntrinsicElements {
// HTML
a: AnchorHTMLAttributes
abbr: HTMLAttributes
address: HTMLAttributes
area: AreaHTMLAttributes
article: HTMLAttributes
aside: HTMLAttributes
audio: AudioHTMLAttributes
b: HTMLAttributes
base: BaseHTMLAttributes
bdi: HTMLAttributes
bdo: HTMLAttributes
big: HTMLAttributes
blockquote: BlockquoteHTMLAttributes
body: HTMLAttributes
br: HTMLAttributes
button: ButtonHTMLAttributes
canvas: CanvasHTMLAttributes
caption: HTMLAttributes
cite: HTMLAttributes
code: HTMLAttributes
col: ColHTMLAttributes
colgroup: ColgroupHTMLAttributes
data: HTMLAttributes
datalist: HTMLAttributes
dd: HTMLAttributes
del: DelHTMLAttributes
details: DetailsHTMLAttributes
dfn: HTMLAttributes
dialog: DialogHTMLAttributes
div: HTMLAttributes
dl: HTMLAttributes
dt: HTMLAttributes
em: HTMLAttributes
embed: EmbedHTMLAttributes
fieldset: FieldsetHTMLAttributes
figcaption: HTMLAttributes
figure: HTMLAttributes
footer: HTMLAttributes
form: FormHTMLAttributes
h1: HTMLAttributes
h2: HTMLAttributes
h3: HTMLAttributes
h4: HTMLAttributes
h5: HTMLAttributes
h6: HTMLAttributes
head: HTMLAttributes
header: HTMLAttributes
hgroup: HTMLAttributes
hr: HTMLAttributes
html: HTMLAttributes
i: HTMLAttributes
iframe: IframeHTMLAttributes
img: ImgHTMLAttributes
input:
| CheckboxInputHTMLAttributes
| NumberInputHTMLAttributes
| TextInputHTMLAttributes
ins: InsHTMLAttributes
kbd: HTMLAttributes
keygen: KeygenHTMLAttributes
label: LabelHTMLAttributes
legend: HTMLAttributes
li: LiHTMLAttributes
link: LinkHTMLAttributes
main: HTMLAttributes
map: MapHTMLAttributes
mark: HTMLAttributes
menu: MenuHTMLAttributes
menuitem: HTMLAttributes
meta: MetaHTMLAttributes
meter: MeterHTMLAttributes
nav: HTMLAttributes
noscript: HTMLAttributes
object: ObjectHTMLAttributes
ol: OlHTMLAttributes
optgroup: OptgroupHTMLAttributes
option: OptionHTMLAttributes
output: OutputHTMLAttributes
p: HTMLAttributes
param: ParamHTMLAttributes
picture: HTMLAttributes
pre: HTMLAttributes
progress: ProgressHTMLAttributes
q: QuoteHTMLAttributes
rp: HTMLAttributes
rt: HTMLAttributes
ruby: HTMLAttributes
s: HTMLAttributes
samp: HTMLAttributes
script: ScriptHTMLAttributes
section: HTMLAttributes
select: MultiSelectHTMLAttributes | SingleSelectHTMLAttributes
small: HTMLAttributes
source: SourceHTMLAttributes
span: HTMLAttributes
strong: HTMLAttributes
style: StyleHTMLAttributes
sub: HTMLAttributes
summary: HTMLAttributes
sup: HTMLAttributes
table: TableHTMLAttributes
tbody: HTMLAttributes
td: TdHTMLAttributes
textarea: TextareaHTMLAttributes
tfoot: HTMLAttributes
th: ThHTMLAttributes
thead: HTMLAttributes
time: TimeHTMLAttributes
title: HTMLAttributes
tr: HTMLAttributes
track: TrackHTMLAttributes
u: HTMLAttributes
ul: HTMLAttributes
var: HTMLAttributes
video: VideoHTMLAttributes
wbr: HTMLAttributes
}
export interface AnchorHTMLAttributes extends HTMLAttributes {
download?: any
href?: string
hrefLang?: string
hreflang?: string
media?: string
rel?: string
target?: string
}
// tslint:disable-next-line
export interface AudioHTMLAttributes extends MediaHTMLAttributes {}
export interface AreaHTMLAttributes extends HTMLAttributes {
alt?: string
coords?: string
download?: any
href?: string
hrefLang?: string
hreflang?: string
media?: string
rel?: string
shape?: string
target?: string
}
export interface BaseHTMLAttributes extends HTMLAttributes {
href?: string
target?: string
}
export interface BlockquoteHTMLAttributes extends HTMLAttributes {
cite?: string
}
export interface ButtonHTMLAttributes extends HTMLAttributes {
autoFocus?: boolean
disabled?: boolean
form?: string
formAction?: string
formaction?: string
formEncType?: string
formenctype?: string
formMethod?: string
formmethod?: string
formNoValidate?: boolean
formnovalidate?: boolean
formTarget?: string
formtarget?: string
name?: string
type?: string
value?: string | number
}
export interface CanvasHTMLAttributes extends HTMLAttributes {
height?: number | string
width?: number | string
}
export interface ColHTMLAttributes extends HTMLAttributes {
span?: number
}
export interface ColgroupHTMLAttributes extends HTMLAttributes {
span?: number
}
export interface DetailsHTMLAttributes extends HTMLAttributes {
open?: boolean
}
export interface DelHTMLAttributes extends HTMLAttributes {
cite?: string
dateTime?: string
datetime?: string
}
export interface DialogHTMLAttributes extends HTMLAttributes {
open?: boolean
returnValue?: string
}
export interface EmbedHTMLAttributes extends HTMLAttributes {
height?: number | string
src?: string
type?: string
width?: number | string
}
export interface FieldsetHTMLAttributes extends HTMLAttributes {
disabled?: boolean
form?: string
name?: string
}
export interface FormHTMLAttributes extends HTMLAttributes {
acceptCharset?: string
acceptcharset?: string
action?: string
autoComplete?: string
autocomplete?: string
encType?: string
enctype?: string
method?: string
name?: string
noValidate?: boolean
novalidate?: boolean | string
target?: string
}
export interface HtmlHTMLAttributes extends HTMLAttributes {
manifest?: string
}
export interface IframeHTMLAttributes extends HTMLAttributes {
allowFullScreen?: boolean
allowfullScreen?: string | boolean
allowTransparency?: boolean
allowtransparency?: string | boolean
frameBorder?: number | string
frameborder?: number | string
height?: number | string
marginHeight?: number
marginheight?: string | number
marginWidth?: number
marginwidth?: string | number
name?: string
sandbox?: string
scrolling?: string
seamless?: boolean
src?: string
srcDoc?: string
srcdoc?: string
width?: number | string
}
export interface ImgHTMLAttributes extends HTMLAttributes {
alt?: string
decoding?: "async" | "auto" | "sync"
height?: number | string
sizes?: string
src?: string
srcSet?: string
srcset?: string
useMap?: string
usemap?: string
width?: number | string
}
export interface InsHTMLAttributes extends HTMLAttributes {
cite?: string
dateTime?: string
datetime?: string
}
export interface CheckboxInputHTMLAttributes
extends Omit<InputHTMLAttributes, "onChange" | "onInput"> {
type: "checkbox"
onChange?: (event: ChangeEvent<boolean>) => void
onInput?: (event: InputEvent<boolean>) => void
}
export interface NumberInputHTMLAttributes
extends Omit<InputHTMLAttributes, "onChange" | "onInput"> {
type: "number"
onChange?: (event: ChangeEvent<number>) => void
onInput?: (event: InputEvent<number>) => void
}
export interface TextInputHTMLAttributes
extends Omit<InputHTMLAttributes, "onChange" | "onInput"> {
type?: Exclude<InputType, "checkbox" | "number">
onChange?: (event: ChangeEvent<string>) => void
onInput?: (event: InputEvent<string>) => void
}
export type InputType =
| "button"
| "checkbox"
| "color"
| "date"
| "datetime"
| "datetime-local"
| "email"
| "file"
| "hidden"
| "image"
| "month"
| "number"
| "password"
| "radio"
| "range"
| "reset"
| "search"
| "submit"
| "tel"
| "text"
| "time"
| "url"
| "week"
export interface InputHTMLAttributes extends HTMLAttributes {
// Purview specific
defaultValue?: string | number
defaultChecked?: boolean
// Standard HTML Attributes
accept?: string
alt?: string
autoComplete?: string
autocomplete?: string
autoFocus?: boolean
autofocus?: boolean | string
capture?: string // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
checked?: boolean
crossOrigin?: string
crossorigin?: string
disabled?: boolean
form?: string
formAction?: string
formaction?: string
formEncType?: string
formenctype?: string
formMethod?: string
formmethod?: string
formNoValidate?: boolean
formnovalidate?: boolean
formTarget?: string
formtarget?: string
height?: number | string
list?: string
max?: number | string
maxLength?: number
maxlength?: number | string
min?: number | string
minLength?: number
minlength?: number | string
multiple?: boolean
name?: string
pattern?: string
placeholder?: string
readOnly?: boolean
readonly?: boolean | string
required?: boolean
size?: number
src?: string
step?: number | string
type?: InputType
value?: string | number
width?: number | string
}
export interface KeygenHTMLAttributes extends HTMLAttributes {
autoFocus?: boolean
autofocus?: boolean | string
challenge?: string
disabled?: boolean
form?: string
keyType?: string
keytype?: string
keyParams?: string
keyparams?: string
name?: string
}
export interface LabelHTMLAttributes extends HTMLAttributes {
form?: string
htmlFor?: string
htmlfor?: string
}
export interface LiHTMLAttributes extends HTMLAttributes {
value?: string | number
}
export interface LinkHTMLAttributes extends HTMLAttributes {
href?: string
hrefLang?: string
hreflang?: string
integrity?: string
media?: string
rel?: string
sizes?: string
type?: string
}
export interface MapHTMLAttributes extends HTMLAttributes {
name?: string
}
export interface MenuHTMLAttributes extends HTMLAttributes {
type?: string
}
export interface MediaHTMLAttributes extends HTMLAttributes {
autoPlay?: boolean
autoplay?: boolean | string
controls?: boolean
crossOrigin?: string
crossorigin?: string
loop?: boolean
mediaGroup?: string
mediagroup?: string
muted?: boolean
preload?: string
src?: string
}
export interface MetaHTMLAttributes extends HTMLAttributes {
charSet?: string
charset?: string
content?: string
httpEquiv?: string
httpequiv?: string
name?: string
}
export interface MeterHTMLAttributes extends HTMLAttributes {
form?: string
high?: number
low?: number
max?: number | string
min?: number | string
optimum?: number
value?: string | number
}
export interface QuoteHTMLAttributes extends HTMLAttributes {
cite?: string
}
export interface ObjectHTMLAttributes extends HTMLAttributes {
classID?: string
classid?: string
data?: string
form?: string
height?: number | string
name?: string
type?: string
useMap?: string
usemap?: string
width?: number | string
wmode?: string
}
export interface OlHTMLAttributes extends HTMLAttributes {
reversed?: boolean
start?: number
}
export interface OptgroupHTMLAttributes extends HTMLAttributes {
disabled?: boolean
label?: string
}
export interface OptionHTMLAttributes extends HTMLAttributes {
// Purview specific
defaultSelected?: boolean
// Standard HTML attributes
disabled?: boolean
label?: string
selected?: boolean
value?: string | number
}
export interface OutputHTMLAttributes extends HTMLAttributes {
form?: string
htmlFor?: string
htmlfor?: string
name?: string
}
export interface ParamHTMLAttributes extends HTMLAttributes {
name?: string
value?: string | number
}
export interface ProgressHTMLAttributes extends HTMLAttributes {
max?: number | string
value?: string | number
}
export interface ScriptHTMLAttributes extends HTMLAttributes {
async?: boolean
charSet?: string
charset?: string
crossOrigin?: string
crossorigin?: string
defer?: boolean
integrity?: string
nonce?: string
src?: string
type?: string
}
export interface MultiSelectHTMLAttributes
extends Omit<SelectHTMLAttributes, "onChange" | "onInput"> {
multiple: true
onChange?: (event: ChangeEvent<string[]>) => void
onInput?: (event: InputEvent<string[]>) => void
}
export interface SingleSelectHTMLAttributes
extends Omit<SelectHTMLAttributes, "onChange" | "onInput"> {
multiple?: false
onChange?: (event: ChangeEvent<string>) => void
onInput?: (event: InputEvent<string>) => void
}
export interface SelectHTMLAttributes extends HTMLAttributes {
autoFocus?: boolean
autoComplete?: string
autocomplete?: string
disabled?: boolean
form?: string
multiple?: boolean
name?: string
required?: boolean
size?: number
}
export interface SourceHTMLAttributes extends HTMLAttributes {
media?: string
sizes?: string
src?: string
srcSet?: string
type?: string
}
export interface StyleHTMLAttributes extends HTMLAttributes {
media?: string
nonce?: string
scoped?: boolean
type?: string
}
export interface TableHTMLAttributes extends HTMLAttributes {
cellPadding?: number | string
cellpadding?: number | string
cellSpacing?: number | string
cellspacing?: number | string
summary?: string
}
export interface TextareaHTMLAttributes extends HTMLAttributes {
// Purview specific
defaultValue?: string | number
// Standard HTML attributes
autoFocus?: boolean
autofocus?: boolean | string
cols?: number
disabled?: boolean
form?: string
maxLength?: number
maxlength?: number | string
minLength?: number
minlength?: number | string
name?: string
placeholder?: string
readOnly?: boolean
readonly?: boolean | string
required?: boolean
rows?: number
value?: string | number
wrap?: string
}
export interface TdHTMLAttributes extends HTMLAttributes {
colSpan?: number
colspan?: number
headers?: string
rowSpan?: number
}
export interface ThHTMLAttributes extends HTMLAttributes {
colSpan?: number
colspan?: number
headers?: string
rowSpan?: number
rowspan?: number | string
scope?: string
}
export interface TimeHTMLAttributes extends HTMLAttributes {
dateTime?: string
}
export interface TrackHTMLAttributes extends HTMLAttributes {
default?: boolean
kind?: string
label?: string
src?: string
srcLang?: string
srclang?: string
}
export interface VideoHTMLAttributes extends MediaHTMLAttributes {
height?: number | string
playsInline?: boolean
playsinline?: boolean | string
poster?: string
width?: number | string
}
export type Child = string | number | boolean | null | undefined | JSX.Element
export interface HTMLAttributes extends DOMAttributes {
// Purview specific
key?: string | number
children?: Child | NestedArray<Child>
ignoreChildren?: boolean
css?: CSS
// Standard HTML Attributes
accessKey?: string
class?: string
contentEditable?: boolean | string
contenteditable?: boolean | string
contextMenu?: string
contextmenu?: string
dir?: string
draggable?: boolean
hidden?: boolean
id?: string
lang?: string
slot?: string
spellCheck?: boolean
spellcheck?: boolean | string
style?: string
tabIndex?: number
tabindex?: number | string
title?: string
// Unknown
inputMode?: string
inputmode?: string
is?: string
radioGroup?: string // <command>, <menuitem>
radiogroup?: string
// WAI-ARIA
role?: string
// RDFa Attributes
about?: string
datatype?: string
inlist?: any
prefix?: string
property?: string
resource?: string
typeof?: string
vocab?: string
// Non-standard Attributes
autoCapitalize?: string
autocapitalize?: string
autoCorrect?: string
autocorrect?: string
autoSave?: string
autosave?: string
color?: string
itemProp?: string
itemprop?: string
itemScope?: boolean
itemscope?: boolean
itemType?: string
itemtype?: string
itemID?: string
itemid?: string
itemRef?: string
itemref?: string
results?: number
security?: string
unselectable?: boolean
}
export interface SVGAttributes extends DOMAttributes {
// Attributes which are also defined in HTMLAttributes
class?: string
color?: string
height?: number | string
id?: string
lang?: string
max?: number | string
media?: string
method?: string
min?: number | string
name?: string
style?: string
target?: string
type?: string
width?: number | string
// Other HTML properties supported by SVG elements in browsers
role?: string
tabIndex?: number
// SVG Specific attributes
accentHeight?: number | string
accumulate?: "none" | "sum"
additive?: "replace" | "sum"
alignmentBaseline?:
| "auto"
| "baseline"
| "before-edge"
| "text-before-edge"
| "middle"
| "central"
| "after-edge"
| "text-after-edge"
| "ideographic"
| "alphabetic"
| "hanging"
| "mathematical"
| "inherit"
allowReorder?: "no" | "yes"
alphabetic?: number | string
amplitude?: number | string
arabicForm?: "initial" | "medial" | "terminal" | "isolated"
ascent?: number | string
attributeName?: string
attributeType?: string
autoReverse?: number | string
azimuth?: number | string
baseFrequency?: number | string
baselineShift?: number | string
baseProfile?: number | string
bbox?: number | string
begin?: number | string
bias?: number | string
by?: number | string
calcMode?: number | string
capHeight?: number | string
clip?: number | string
clipPath?: string
clipPathUnits?: number | string
clipRule?: number | string
colorInterpolation?: number | string
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit"
colorProfile?: number | string
colorRendering?: number | string
contentScriptType?: number | string
contentStyleType?: number | string
cursor?: number | string
cx?: number | string
cy?: number | string
d?: string
decelerate?: number | string
descent?: number | string
diffuseConstant?: number | string
direction?: number | string
display?: number | string
divisor?: number | string
dominantBaseline?: number | string
dur?: number | string
dx?: number | string
dy?: number | string
edgeMode?: number | string
elevation?: number | string
enableBackground?: number | string
end?: number | string
exponent?: number | string
externalResourcesRequired?: number | string
fill?: string
fillOpacity?: number | string
fillRule?: "nonzero" | "evenodd" | "inherit"
filter?: string
filterRes?: number | string
filterUnits?: number | string
floodColor?: number | string
floodOpacity?: number | string
focusable?: number | string
fontFamily?: string
fontSize?: number | string
fontSizeAdjust?: number | string
fontStretch?: number | string
fontStyle?: number | string
fontVariant?: number | string
fontWeight?: number | string
format?: number | string
from?: number | string
fx?: number | string
fy?: number | string
g1?: number | string
g2?: number | string
glyphName?: number | string
glyphOrientationHorizontal?: number | string
glyphOrientationVertical?: number | string
glyphRef?: number | string
gradientTransform?: string
gradientUnits?: string
hanging?: number | string
horizAdvX?: number | string
horizOriginX?: number | string
ideographic?: number | string
imageRendering?: number | string
in2?: number | string
in?: string
intercept?: number | string
k1?: number | string
k2?: number | string
k3?: number | string
k4?: number | string
k?: number | string
kernelMatrix?: number | string
kernelUnitLength?: number | string
kerning?: number | string
keyPoints?: number | string
keySplines?: number | string
keyTimes?: number | string
lengthAdjust?: number | string
letterSpacing?: number | string
lightingColor?: number | string
limitingConeAngle?: number | string
local?: number | string
markerEnd?: string
markerHeight?: number | string
markerMid?: string
markerStart?: string
markerUnits?: number | string
markerWidth?: number | string
mask?: string
maskContentUnits?: number | string
maskUnits?: number | string
mathematical?: number | string
mode?: number | string
numOctaves?: number | string
offset?: number | string
opacity?: number | string
operator?: number | string
order?: number | string
orient?: number | string
orientation?: number | string
origin?: number | string
overflow?: number | string
overlinePosition?: number | string
overlineThickness?: number | string
paintOrder?: number | string
panose1?: number | string
pathLength?: number | string
patternContentUnits?: string
patternTransform?: number | string
patternUnits?: string
pointerEvents?: number | string
points?: string
pointsAtX?: number | string
pointsAtY?: number | string
pointsAtZ?: number | string
preserveAlpha?: number | string
preserveAspectRatio?: string
primitiveUnits?: number | string
r?: number | string
radius?: number | string
refX?: number | string
refY?: number | string
renderingIntent?: number | string
repeatCount?: number | string
repeatDur?: number | string
requiredExtensions?: number | string
requiredFeatures?: number | string
restart?: number | string
result?: string
rotate?: number | string
rx?: number | string
ry?: number | string
scale?: number | string
seed?: number | string
shapeRendering?: number | string
slope?: number | string
spacing?: number | string
specularConstant?: number | string
specularExponent?: number | string
speed?: number | string
spreadMethod?: string
startOffset?: number | string
stdDeviation?: number | string
stemh?: number | string
stemv?: number | string
stitchTiles?: number | string
stopColor?: string
stopOpacity?: number | string
strikethroughPosition?: number | string
strikethroughThickness?: number | string
string?: number | string
stroke?: string
strokeDasharray?: string | number
strokeDashoffset?: string | number
strokeLinecap?: "butt" | "round" | "square" | "inherit"
strokeLinejoin?: "miter" | "round" | "bevel" | "inherit"
strokeMiterlimit?: string
strokeOpacity?: number | string
strokeWidth?: number | string
surfaceScale?: number | string
systemLanguage?: number | string
tableValues?: number | string
targetX?: number | string
targetY?: number | string
textAnchor?: string
textDecoration?: number | string
textLength?: number | string
textRendering?: number | string
to?: number | string
transform?: string
u1?: number | string
u2?: number | string
underlinePosition?: number | string
underlineThickness?: number | string
unicode?: number | string
unicodeBidi?: number | string
unicodeRange?: number | string
unitsPerEm?: number | string
vAlphabetic?: number | string
values?: string
vectorEffect?: number | string
version?: string
vertAdvY?: number | string
vertOriginX?: number | string
vertOriginY?: number | string
vHanging?: number | string
vIdeographic?: number | string
viewBox?: string
viewTarget?: number | string
visibility?: number | string
vMathematical?: number | string
widths?: number | string
wordSpacing?: number | string
writingMode?: number | string
x1?: number | string
x2?: number | string
x?: number | string
xChannelSelector?: string
xHeight?: number | string
xlinkActuate?: string
xlinkArcrole?: string
xlinkHref?: string
xlinkRole?: string
xlinkShow?: string
xlinkTitle?: string
xlinkType?: string
xmlBase?: string
xmlLang?: string
xmlns?: string
xmlnsXlink?: string
xmlSpace?: string
y1?: number | string
y2?: number | string
y?: number | string
yChannelSelector?: string