Merge pull request #13257 from mlewando/types-2.0

Missing stroke parameters in SVG properties
This commit is contained in:
John Reilly
2016-12-11 16:31:09 +00:00
committed by GitHub
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",