add svg attribute width and height for rect element. SVGAttribute inherit DOMAttributes.

This commit is contained in:
benishouga
2015-08-06 03:22:04 +09:00
parent 62bb9fd807
commit a117cbd73e
3 changed files with 15 additions and 3 deletions

View File

@@ -518,7 +518,9 @@ declare module "react/addons" {
unselectable?: boolean;
}
interface SVGAttributes extends HTMLAttributes {
interface SVGAttributes extends DOMAttributes {
ref?: string | ((component: SVGComponent) => void);
cx?: number | string;
cy?: number | string;
d?: string;
@@ -532,6 +534,7 @@ declare module "react/addons" {
fy?: number | string;
gradientTransform?: string;
gradientUnits?: string;
height?: number | string;
markerEnd?: string;
markerMid?: string;
markerStart?: string;
@@ -556,6 +559,7 @@ declare module "react/addons" {
transform?: string;
version?: string;
viewBox?: string;
width?: number | string;
x1?: number | string;
x2?: number | string;
x?: number | string;

View File

@@ -524,7 +524,9 @@ declare module React {
preserveAspectRatio?: string;
}
interface SVGAttributes extends HTMLAttributes {
interface SVGAttributes extends DOMAttributes {
ref?: string | ((component: SVGComponent) => void);
cx?: number | string;
cy?: number | string;
d?: string;
@@ -538,6 +540,7 @@ declare module React {
fy?: number | string;
gradientTransform?: string;
gradientUnits?: string;
height?: number | string;
markerEnd?: string;
markerMid?: string;
markerStart?: string;
@@ -562,6 +565,7 @@ declare module React {
transform?: string;
version?: string;
viewBox?: string;
width?: number | string;
x1?: number | string;
x2?: number | string;
x?: number | string;

6
react/react.d.ts vendored
View File

@@ -524,7 +524,9 @@ declare module __React {
preserveAspectRatio?: string;
}
interface SVGAttributes extends HTMLAttributes {
interface SVGAttributes extends DOMAttributes {
ref?: string | ((component: SVGComponent) => void);
cx?: number | string;
cy?: number | string;
d?: string;
@@ -538,6 +540,7 @@ declare module __React {
fy?: number | string;
gradientTransform?: string;
gradientUnits?: string;
height?: number | string;
markerEnd?: string;
markerMid?: string;
markerStart?: string;
@@ -562,6 +565,7 @@ declare module __React {
transform?: string;
version?: string;
viewBox?: string;
width?: number | string;
x1?: number | string;
x2?: number | string;
x?: number | string;