Skip to content
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

fix(deps): update rust crate eframe to 0.30.0 #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 8, 2023

This PR contains the following updates:

Package Type Update Change
eframe (source) dependencies minor 0.20.1 -> 0.30.0

Release Notes

emilk/egui (eframe)

v0.30.0

Compare Source

NOTE: you now need to enable the wayland or x11 features to get Linux support, including getting it to work on most CI systems.

⭐ Added
🔧 Changed
🐛 Fixed

v0.29.1

Compare Source

v0.29.0

Compare Source

✨ Highlights
🧳 Migration
  • WebRunner::start now expects a HtmlCanvasElement rather than the id of it (#​4780)
  • NativeOptions::follow_system_theme and default_theme is gone, and is now in egui::Options instead (#​4860 by @​bash)
⭐ Added
🔧 Changed
🐛 Fixed

v0.28.1

Compare Source

v0.28.0

Compare Source

✨ Highlights

The eframe web canvas now works properly when its a small part of a larger web page.
Previously this caused a lot of weird bugs, such as the eframe canvas stealing focus, and resizing the canvas in annoying ways.
Now it should all work seamlessly to have an eframe canvas as part of a web page, including having multiple different eframe apps next to each other.
As part of that the eframe canvas can now be focused (or not), just like an <input> HTML element.

We've also implemented a better method for sizing and positioning the canvas so that it yields pixel-perfect rendering on all known browsers except for Desktop Safari.
What this means is that text is much less likely to be blurry on web for users (#​4536 by @​jprochazk).

⭐ Added
🔧 Changed
🐛 Fixed
🧳 Migration
Wrap app creator in a Result

Applications can now return an error during the app creation (#​4565 by @​emilk), so you now need to wrap your Box<dyn App> in a Result like so:

- eframe::run_native("My App", options, Box::new(|cc| Box::new(MyApp::new(cc))));
+ eframe::run_native("My App", options, Box::new(|cc| Ok(Box::new(MyApp::new(cc)))));
Change web CSS

To make the eframe canvas fill the entire web browser, set its CSS to:

top: 0;
left: 0;
width: 100%;
height: 100%;

See index.html and #​4536 for details.

Web canvas focus

If you are using eframe for a fullscreen app, you should call .focus() on your canvas during startup:

document.getElementById("the_canvas_id").focus();

v0.27.2

Compare Source

Desktop/Native
  • Fix continuous repaint on Wayland when TextEdit is focused or IME output is set #​4269 (thanks @​white-axe!)
  • Remove a bunch of unwrap() #​4285
Web
  • Fix blurry rendering in some browsers #​4299
  • Correctly identify if the browser tab has focus #​4280

v0.27.1

Compare Source

v0.27.0

Compare Source

  • Update to document-features 0.2.8 #​4003
  • Added App::raw_input_hook allows for the manipulation or filtering of raw input events #​4008 (thanks @​varphone!)
Desktop/Native
Web

v0.26.2

Compare Source

v0.26.1

Compare Source

v0.26.0

Compare Source

Desktop/Native
Web
  • When using wgpu on web, eframe will try to use WebGPU if available, then fall back to WebGL #​3824 #​3895 (thanks @​Wumpf!)

v0.25.0

Compare Source

  • If both glow and wgpu features are enabled, default to wgpu #​3717
Desktop/Native
Web
  • Fix building the wasm32 docs for docs.rs #​3757

v0.24.1

Compare Source

Desktop/Native
  • Fix window flashing white on launch #​3631 (thanks @​zeozeozeo!)
  • Fix windowing problems when using the x11 feature on Linux #​3643
  • Fix bugs when there are multiple monitors with different scales #​3663
  • glow backend: clear framebuffer color before calling App::update #​3665
Web
  • Fix click-to-copy on Safari #​3621
  • Don't throw away frames on click/copy/cut #​3623
  • Remove dependency on tts #​3651

v0.24.0

Compare Source

Breaking changes:

Most settings in NativeOptions have been moved to NativeOptions::viewport, which uses the new egui::ViewportBuilder:

 let native_options = eframe::nativeOptions {
-    initial_window_size: Some(egui::vec2(320.0, 240.0)),
-    drag_and_drop_support: true,
+    viewport: egui::ViewportBuilder::default()
+        .with_inner_size([320.0, 240.0])
+        .with_drag_and_drop(true),
     ..Default::default()
 };

NativeOptions::fullsize_content has been replaced with four settings: ViewportBuilder::with_fullsize_content_view, with_title_shown, with_titlebar_shown, with_titlebar_buttons_shown

frame.info().window_info is gone, replaced with ctx.input(|i| i.viewport()).

frame.info().native_pixels_per_point is replaced with ctx.input(|i| i.raw.native_pixels_per_point).

Most commands in eframe::Frame has been replaced with egui::ViewportCommand, so So frame.close() becomes ctx.send_viewport_cmd(ViewportCommand::Close), etc.

App::on_close_event has been replaced with ctx.input(|i| i.viewport().close_requested()) and ctx.send_viewport_cmd(ViewportCommand::CancelClose).

eframe::IconData is now egui::IconData.

eframe::IconData::try_from_png_bytes is now eframe::icon_data::from_png_bytes.

App::post_rendering is gone. Screenshots are taken with ctx.send_viewport_cmd(ViewportCommand::Screenshots) and are returned in egui::Event which you can check with:

ui.input(|i| {
    for event in &i.raw.events {
        if let egui::Event::Screenshot { viewport_id, image } = event {
            // handle it here
        }
    }
});

v0.23.0

Compare Source

Desktop/Native
Web
  • Update to wasm-bindgen 0.2.87 #​3237
  • Remove Function() invocation from eframe text_agent to bypass "unsafe-eval" restrictions in Chrome browser extensions. #​3349 (thanks @​aspect!)
  • Fix docs about web #​3026 (thanks @​kerryeon!)

v0.22.0

Compare Source

  • Fix: request_repaint_after works even when called from background thread #​2939
  • Clear all keys and modifies on focus change #​2857 #​2933
  • Remove dark-light dependency #​2929
  • Replace tracing with log #​2928
  • Update accesskit to 0.11 #​3012
Desktop/Native
  • Automatically change theme when system dark/light mode changes #​2750 (thanks @​bash!)
  • Enabled wayland feature for winit when running native #​2751 (thanks @​ItsEthra!)
  • Fix eframe window position bug (pixels vs points) #​2763 (thanks @​get200!)
  • Add Frame::request_screenshot and Frame::screenshot to communicate to the backend that a screenshot of the current frame should be exposed by Frame during App::post_rendering (#​2676).
  • Add eframe::run_simple_native * a simple API for simple apps (#​2453).
  • Add NativeOptions::app_id which allows to set the Wayland application ID under Linux (#​1600).
  • Add NativeOptions::active #​2813 (thanks @​Dixeran!)
  • Remove android-activity dependency + add Activity backend features #​2863 (thanks @​rib!)
  • Fix bug where the eframe window is never destroyed on Linux when using run_and_return (#​2892)
  • Fix state persisting when exiting on Linux #​2895 (thanks @​flukejones!)
  • Allow for requesting the user's attention to the window #​2905 (thanks @​TicClick!)
  • Read and request window focus #​2900 (thanks @​TicClick!)
  • Set app icon on Mac and Windows #​2940
  • Set a default icon for all eframe apps: a white e on black background #​2996
  • Add NativeOptions::app_id for the persistence location #​3014 and for Wayland #​3007 (thanks @​thomaskrause!)
  • capture a screenshot using Frame::request_screenshot 870264b
Web
  • ⚠️ BREAKING: eframe::start_web has been replaced with eframe::WebRunner, which also installs a nice panic hook (no need for console_error_panic_hook).
  • ⚠️ BREAKING: WebGPU is now the default web renderer when using the wgpu feature of eframe. To use WebGL with wgpu, you need to add wgpu = { version = "0.16.0", features = ["webgl"] } to your own Cargo.toml. (#​2945)
  • Add eframe::WebLogger for redirecting log calls to the web console (console.log).
  • Prefer the client width/height for the canvas parent #​2804 (thanks @​samitbasu!)
  • eframe web: Persist app state to local storage when leaving site #​2927
  • Better panic handling #​2942 #​2992
  • Update wasm-bindgen to 0.2.86 #​2995
  • Properly unsubscribe from events on destroy 4d360f6

v0.21.3

Compare Source

  • Fix typing the letter 'P' on web (#​2740).

v0.21.2

Compare Source

  • Allow compiling eframe with --no-default-features (#​2728).

v0.21.1

Compare Source

  • Fixed crash when native window position is in an invalid state, which could happen e.g. due to changes in monitor size or DPI (#​2722).

v0.21.0

Compare Source

  • ⚠️ BREAKING: App::clear_color now expects you to return a raw float array (#​2666).
  • The screen_reader feature has now been renamed web_screen_reader and only work on web. On other platforms, use the accesskit feature flag instead (#​2669).
Desktop/Native
  • eframe::run_native now returns a Result (#​2433).
  • Update to winit 0.28, adding support for mac trackpad zoom (#​2654).
  • Fix bug where the cursor could get stuck using the wrong icon.
  • NativeOptions::transparent now works with the wgpu backend (#​2684).
  • Add Frame::set_minimized and set_maximized (#​2292, #​2672).
  • Fixed persistence of native window position on Windows OS (#​2583).
Web
  • Prevent ctrl-P/cmd-P from opening the print dialog (#​2598).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 67bbfdb to d625b92 Compare February 12, 2023 17:18
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.21.0 fix(deps): update rust crate eframe to 0.21.1 Feb 12, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from d625b92 to aa82810 Compare February 12, 2023 20:36
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.21.1 fix(deps): update rust crate eframe to 0.21.2 Feb 12, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from aa82810 to 049e5a4 Compare February 15, 2023 11:55
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.21.2 fix(deps): update rust crate eframe to 0.21.3 Feb 15, 2023
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.21.3 fix(deps): update rust crate eframe to 0.22.0 May 28, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 049e5a4 to be0e3c3 Compare May 28, 2023 10:14
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from be0e3c3 to afab67a Compare September 28, 2023 07:02
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.22.0 fix(deps): update rust crate eframe to 0.23.0 Sep 28, 2023
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.23.0 fix(deps): update rust crate eframe to 0.24.0 Nov 23, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from afab67a to 226bebf Compare November 23, 2023 15:07
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 226bebf to a108318 Compare November 30, 2023 19:23
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.24.0 fix(deps): update rust crate eframe to 0.24.1 Nov 30, 2023
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.24.1 fix(deps): update rust crate eframe to 0.25.0 Jan 8, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from a108318 to d795e7c Compare January 8, 2024 13:18
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from d795e7c to abfb0e6 Compare February 5, 2024 19:43
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.25.0 fix(deps): update rust crate eframe to 0.26.0 Feb 5, 2024
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.0 fix(deps): update rust crate eframe to 0.26.1 Feb 11, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch 2 times, most recently from ae1f35b to 89885f9 Compare February 14, 2024 12:58
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.1 fix(deps): update rust crate eframe to 0.26.2 Feb 14, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 89885f9 to 7c57275 Compare March 26, 2024 19:40
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.2 fix(deps): update rust crate eframe to 0.27.0 Mar 26, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 7c57275 to 4cbb14a Compare March 29, 2024 14:31
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.0 fix(deps): update rust crate eframe to 0.27.1 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 4cbb14a to 782bc62 Compare April 2, 2024 19:04
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.1 fix(deps): update rust crate eframe to 0.27.2 Apr 2, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 782bc62 to d44f430 Compare May 5, 2024 09:58
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.2 fix(deps): update rust crate eframe to 0.27.0 May 5, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from d44f430 to c2402e5 Compare July 7, 2024 20:53
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.0 fix(deps): update rust crate eframe to 0.28.0 Jul 7, 2024
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.28.0 fix(deps): update rust crate eframe to 0.29.0 Sep 26, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from c2402e5 to 34a0bb9 Compare September 26, 2024 14:22
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 34a0bb9 to eec9134 Compare December 16, 2024 18:35
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.29.0 fix(deps): update rust crate eframe to 0.30.0 Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants