Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Apr 30, 2022
1 parent 4d9ed75 commit c0252a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -52,14 +52,14 @@ const styles = StyleSheet.create({

| Method | Description|
| ------------------ | -------- |
| `reset` | Clear all the paths. |
| `undo` | Undo |
| `redo` | Redo |
| `toBase64` | Get the base64 of image. |
| `toImage` | Get a snapshot from the canvas in the surface. |
| `toSvg` | Get the svg string of all paths. |
| `toPoints` | Get the array of point groups that got drawn in the canvas. |
| `addPoints` | Draws from an array of point groups. |
| `reset()` | Clear all the paths. |
| `undo()` | Undo |
| `redo()` | Redo |
| `toBase64(format, quality)` | Get the base64 of image. |
| `toImage()` | Get a snapshot from the canvas in the surface. |
| `toSvg(width: number, height: number, backgroundColor?: string)` | Get the svg string of all paths. |
| `toPoints()` | Get the array of point groups that got drawn in the canvas. |
| `addPoints(points: { x: number, y: number }[][])` | Draws from an array of point groups. |

## Contributing

Expand Down
1 change: 1 addition & 0 deletions src/components/SketchCanvas/types.ts
Expand Up @@ -17,6 +17,7 @@ export interface SketchCanvasRef {
toImage: () => SkImage | undefined;
toSvg: (width: number, height: number, backgroundColor?: string) => string;
toPoints: () => Point[][];
addPoints: (points: Point[][]) => void;
}

export interface SketchCanvasProps {
Expand Down

0 comments on commit c0252a3

Please sign in to comment.