diff --git a/examples/main.jsx b/examples/main.jsx index 94871ad6..1d5935f4 100644 --- a/examples/main.jsx +++ b/examples/main.jsx @@ -630,7 +630,7 @@ class SketchFieldDemo extends React.Component { @@ -638,7 +638,7 @@ class SketchFieldDemo extends React.Component {
diff --git a/types/index.d.ts b/types/index.d.ts index 3d722f80..d955d3dd 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -88,7 +88,7 @@ declare module '@kiddom/react-sketch' { * scale: * } */ - addImg(dataUrl: string, options?: { left?: number, top?: number, scale?: number }): void + addImg(dataUrl: string, options?: { left?: number, top?: number, scale?: number, crossOrigin?: string }): void /** * Zoom the drawing by the factor specified