Skip to content

Comments

defaultImage and onDraw#7

Open
andrew4699 wants to merge 2 commits intojonhni:masterfrom
andrew4699:master
Open

defaultImage and onDraw#7
andrew4699 wants to merge 2 commits intojonhni:masterfrom
andrew4699:master

Conversation

@andrew4699
Copy link

Added the defaultImage and onDraw attributes to the component.

<DrawableCanvas defaultImage="images/cartoon.png" onDraw={(image) => this.onDraw(image)} />

Every time the person draws something new, onDraw is called with a base64 encoding of the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant