Missing stroke parameters in SVG properties

This commit is contained in:
Mateusz Lewandowski 2016-12-11 17:09:57 +01:00
parent 9d6ee729f8
commit d89e3032bd
2 changed files with 8 additions and 3 deletions

3
react/index.d.ts vendored
View File

@ -2179,7 +2179,8 @@ declare namespace React {
stopColor?: string;
stopOpacity?: number | string;
stroke?: string;
strokeDasharray?: string;
strokeDasharray?: string | number;
strokeDashoffset?: string | number;
strokeLinecap?: "butt" | "round" | "square" | "inherit";
strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
strokeMiterlimit?: string;

View File

@ -341,13 +341,17 @@ React.DOM.svg({
x: 22,
y: 10,
width: 4,
height: 28
height: 28,
strokeDasharray: '30%',
strokeDashoffset: '20%'
}),
React.DOM.rect({
x: 10,
y: 22,
width: 28,
height: 4
height: 4,
strokeDasharray: 30,
strokeDashoffset: 20
}),
React.DOM.path({
d: "M0,0V3H3V0ZM1,1V2H2V1Z",