From 46997c99af36627d2a56598f26d474a658932361 Mon Sep 17 00:00:00 2001 From: Phips Peter Date: Wed, 24 Sep 2014 11:09:21 -0700 Subject: [PATCH] Adding SvgAttributes Unfortunately SvgAttributes require union types and cannot be properly typed. --- react/react.d.ts | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/react/react.d.ts b/react/react.d.ts index 93638cff0..020eb1fd6 100644 --- a/react/react.d.ts +++ b/react/react.d.ts @@ -341,7 +341,49 @@ declare module "react" { } interface SvgAttributes extends EventAttributes { - + cx?: any; + cy?: any; + d?: any; + dx?: any; + dy?: any; + fill?: any; + fillOpacity?: any; + fontFamily?: any; + fontSize?: any; + fx?: any; + fy?: any; + gradientTransform?: any; + gradientUnits?: any; + markerEnd?: any; + markerMid?: any; + markerStart?: any; + offset?: any; + opacity?: any; + patternContentUnits?: any; + patternUnits?: any; + points?: any; + preserveAspectRatio?: any; + r?: any; + rx?: any; + ry?: any; + spreadMethod?: any; + stopColor?: any; + stopOpacity?: any; + stroke?: any; + strokeDasharray?: any; + strokeLinecap?: any; + strokeOpacity?: any; + strokeWidth?: any; + textAnchor?: any; + transform?: any; + version?: any; + viewBox?: any; + x1?: any; + x2?: any; + x?: any; + y1?: any; + y2?: any; + y?: any; } interface DomElement extends Factory {}