Add web support
A limitation of this implementation is that it can't coexist with anything which creates a canvas context other than `CanvasRenderingContext2D`, since only one context can exist per canvas.
This commit is contained in:
parent
bc900e69e7
commit
d735510f72
7 changed files with 155 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ winapi = "0.3.9"
|
|||
core-graphics = "0.22.3"
|
||||
objc = "0.2.7"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
wasm-bindgen = "0.2.78"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
||||
version = "0.3.55"
|
||||
features = ["CanvasRenderingContext2d", "Document", "Element", "HtmlCanvasElement", "ImageData", "Window"]
|
||||
|
||||
[dev-dependencies]
|
||||
winit = "0.26.1"
|
||||
image = "0.23.14"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue