mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Use canvas directly (#4780)
This commit is contained in:
@@ -85,10 +85,10 @@
|
||||
//!
|
||||
//! /// Call this once from JavaScript to start your app.
|
||||
//! #[wasm_bindgen]
|
||||
//! pub async fn start(&self, canvas_id: &str) -> Result<(), wasm_bindgen::JsValue> {
|
||||
//! pub async fn start(&self, canvas: web_sys::HtmlCanvasElement) -> Result<(), wasm_bindgen::JsValue> {
|
||||
//! self.runner
|
||||
//! .start(
|
||||
//! canvas_id,
|
||||
//! canvas,
|
||||
//! eframe::WebOptions::default(),
|
||||
//! Box::new(|cc| Ok(Box::new(MyEguiApp::new(cc))),)
|
||||
//! )
|
||||
|
||||
Reference in New Issue
Block a user