mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
add svg attribute width and height for rect element. SVGAttribute inherit DOMAttributes.
This commit is contained in:
6
react/react-addons.d.ts
vendored
6
react/react-addons.d.ts
vendored
@@ -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;
|
||||
|
||||
6
react/react-global.d.ts
vendored
6
react/react-global.d.ts
vendored
@@ -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
6
react/react.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user