Start implementing web-sys backend
This commit is contained in:
parent
182beb4f8b
commit
e4d8e22846
11 changed files with 479 additions and 15 deletions
7
src/platform/web_sys.rs
Normal file
7
src/platform/web_sys.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#![cfg(feature = "web-sys")]
|
||||
|
||||
use web_sys::HtmlCanvasElement;
|
||||
|
||||
pub trait WindowExtWebSys {
|
||||
fn canvas(&self) -> HtmlCanvasElement;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue