chore(deps): update rust crate eframe to 0.29 #90
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.27
->0.29
Release Notes
emilk/egui (eframe)
v0.29.1
Compare Source
v0.29.0
Compare Source
✨ Highlights
🧳 Migration
WebRunner::start
now expects aHtmlCanvasElement
rather than the id of it (#4780)NativeOptions::follow_system_theme
anddefault_theme
is gone, and is now inegui::Options
instead (#4860 by @bash)⭐ Added
🔧 Changed
HtmlCanvasElement
element directly inWebRunner::start
#4780 by @jprochazkstatic
eframe::App
lifetime #5060 by @timstrglow
context switching #4814 by @rustbasicweb-sys
&wasm-bindgen
#4980 by @bircniweb_sys_unstable_apis
#5000 by @emilkdirectories
dependency #4904 by @YgorSouza🐛 Fixed
save
when hiding web tab, andupdate
when focusing it #5114 by @emilkeframe::run_simple_native()
persistence #4846 by @tpstevensv0.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
register_native_texture
ineframe::Frame
#4246 by @ChaojimengnanNativeOptions::persistence_path
#4423 by @lucasmerlinraw_input_hook
on web #4646 by @owen-d🔧 Changed
glow
backend #4284, #4296 by @emilkobjc2
and its framework crates #4395 by @madsmtmResizeObserver
instead ofresize
event #4536 by @jprochazkrequest_animation_frame
into resize observer #4628 by @jprochazkdirectories-next
dependency withdirectories
#4661 by @crumblingstatueeframe::Result
is now short foreframe::Result<()>
#4706 by @emilk🐛 Fixed
ViewportCommand::InnerSize
not resizing viewport on Wayland (#4211) #4211 by @rustbasicEvent::Ime
#4358 by @rustbasic.forget()
RAF closure #4551 by @jprochazk🧳 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 aResult
like so:Change web CSS
To make the eframe canvas fill the entire web browser, set its CSS to:
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: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.
This PR was generated by Mend Renovate. View the repository job log.