-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs - Add warning (to use clear method) for Graphics component when updating draw #28
Comments
I believe this should be up to the developer. PIXI memoizes the elements to render, clears the canvas and redraw the elements back to improve performance. If you're using the We could clear the graphics before the prop |
Closing issue now, please let me know if you think we should reopen it. |
Yes. I'm using I just think it would be helpful for the user to let them know that. That actually confused me - when it happened to me - until I found out what it was going on. Again, if that make sense to you, I can create a PR (an update of the docs with the note). |
Good point, would be great if you add this to the README. Thanks! |
Sure thing. I'll work on that soon-ish 👍 |
Hi @bichotll, I've added a note to the |
Description
We should add a warning in the Graphics component to warn the user that he may want to clear the canvas if new properties have received.
I can work on that and create a PR.
Steps to reproduce
I created a simple example: https://codepen.io/bichotll/pen/KBYBpd?editors=0011
The text was updated successfully, but these errors were encountered: