Merge pull request #11851 from uncovertruth/feature/react_svg_attributes

Add React SVG attributes
This commit is contained in:
John Reilly
2016-10-08 16:55:10 +01:00
committed by GitHub
+8 -1
View File
@@ -178,7 +178,7 @@ declare namespace __React {
[key: string]: ReactInstance
};
}
class PureComponent<P, S> extends Component<P, S> {}
interface ClassicComponent<P, S> extends Component<P, S> {
@@ -2074,6 +2074,7 @@ declare namespace __React {
interface SVGAttributes extends HTMLAttributes {
clipPath?: string;
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
cx?: number | string;
cy?: number | string;
d?: string;
@@ -2081,12 +2082,14 @@ declare namespace __React {
dy?: number | string;
fill?: string;
fillOpacity?: number | string;
filter?: string;
fontFamily?: string;
fontSize?: number | string;
fx?: number | string;
fy?: number | string;
gradientTransform?: string;
gradientUnits?: string;
in?: string;
markerEnd?: string;
markerMid?: string;
markerStart?: string;
@@ -2097,9 +2100,11 @@ declare namespace __React {
points?: string;
preserveAspectRatio?: string;
r?: number | string;
result?: string;
rx?: number | string;
ry?: number | string;
spreadMethod?: string;
stdDeviation?: number | string
stopColor?: string;
stopOpacity?: number | string;
stroke?: string;
@@ -2111,6 +2116,8 @@ declare namespace __React {
strokeWidth?: number | string;
textAnchor?: string;
transform?: string;
type?: string;
values?: string;
version?: string;
viewBox?: string;
x1?: number | string;