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
How to get node pointer to dom element? #234
Comments
It seems you can use |
You should be able to generate and control the canvas using raw stdweb and then wrap it in a
To actually be able to control the canvas in your app I think you'd write your own service which holds onto the |
@Kwarrtz Any news on this? This seems really interesting, but |
The short story is: it wasn't as simple as I thought (surprise!). It's been a while so I don't recall the details, but the gist of it is that I couldn't find a good way to maintain a link between the canvas element (the thing you return from your If you're interested in picking up where I left off (or if someone like @deniskolodin wanted to help me work through the kinks) I'd be willing to go back and try to work out the details of what I was trying to do and why I couldn't get it to work again. |
I believe #665 would solve this issue, re-open otherwise :) |
I want to use canvas
fill_rect()
on a canvas element in yew. How can I do that?I need to find a way to get the element's dom node pointer, right? But how?
e.g.
html! { <canvas></canvas> }
How to get the pointer to that canvas element, in the yew component's update method, so I can call
fill_rect()
on it?The text was updated successfully, but these errors were encountered: