eframe 0.37.0 (the egui framework) plus two window fixes: a viewport the app hid is not presented on Wayland, and every viewport is shown after its first painted frame. Maintained for DegenView.
useegui::ScreenshotCallback;usewasm_bindgen::JsValue;/// Renderer for a browser canvas.
/// As of writing we're not allowing to decide on the painter at runtime,
/// therefore this trait is merely there for specifying and documenting the interface.
pub(crate)traitWebPainter{// Create a new web painter targeting a given canvas.
// fn new(canvas: HtmlCanvasElement, options: &WebOptions) -> Result<Self, String>
// where
// Self: Sized;
/// Reference to the canvas in use.
fncanvas(&self)->&web_sys::HtmlCanvasElement;/// Maximum size of a texture in one direction.
fnmax_texture_side(&self)->usize;/// Update all internal textures and paint gui.
/// When `capture` isn't empty, the rendered screen should be captured
/// and passed to the callbacks once it is ready.
fnpaint_and_update_textures(&mutself,
clear_color: [f32; 4],
clipped_primitives:&[egui::ClippedPrimitive],
pixels_per_point:f32,
textures_delta:&mutegui::TexturesDelta,
capture:Vec<ScreenshotCallback>,
)->Result<(), JsValue>;/// Destroy all resources.
fndestroy(&mutself);}