-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Plot interaction methods #766
Merged
Merged
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
203cbb0
move to a basic plot builder with callback
EmbersArc 8cd2de3
add some interaction methods
EmbersArc 9cada8b
move interaction demo to its own panel
EmbersArc 9974524
add another comment
EmbersArc fb8b6d9
update changelog
EmbersArc 10ff7bc
avoid a clone
EmbersArc cdb6f18
Merge remote-tracking branch 'upstream/master' into plot-get-mouse-pos
EmbersArc 1eba777
add a semicolon
EmbersArc 3ac148c
Merge remote-tracking branch 'upstream/master' into plot-get-mouse-pos
EmbersArc c89b11f
fix context menu
EmbersArc 8b97d8e
Merge remote-tracking branch 'upstream/master' into plot-get-mouse-pos
EmbersArc 2020fab
update changelog
EmbersArc ed034b8
Update egui/src/widgets/plot/mod.rs
EmbersArc 98c2b26
Merge branch 'plot-get-mouse-pos' of https://github.com/EmbersArc/egu…
EmbersArc 89b131a
apply suggestions
EmbersArc 4b6be4d
fix test
EmbersArc 7ac223e
fix doctest
EmbersArc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w | |
* Add `ui.add_enabled_ui(bool, |ui| …)` to create a possibly disabled UI section. | ||
* Add feature `"serialize"` separatedly from `"persistence"`. | ||
* Add `egui::widgets::global_dark_light_mode_buttons` to easily add buttons for switching the egui theme. | ||
* Add interaction methods to the plot. | ||
* `TextEdit` can now be used to show text which can be selected and copied, but not edited. | ||
* Add `Memory::caches` for caching things from one frame to the next. | ||
|
||
|
@@ -43,6 +44,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w | |
* MSRV (Minimum Supported Rust Version) is now `1.54.0`. | ||
* By default, `DragValue`:s no longer show a tooltip when hovered. Change with `Style::explanation_tooltips`. | ||
* Smaller and nicer color picker. | ||
* Plots now provide a `build` method that has to be used to add items to and show the plot. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks to my slow review, these lines now need to be moved to new |
||
* `ScrollArea` will auto-shrink to content size unless told otherwise using `ScollArea::auto_shrink`. | ||
* By default, `Slider`'s `clamp_to_range` is set to true. | ||
* Rename `TextEdit::enabled` to `TextEdit::interactive`. | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we improve this wording a bit? Maybe "You can now read the
Plot
coordinates of the mouse when building aPlot
." ? 🤷