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

Plot::Items:allow_hover give possibility to masked the interaction on hovered item #2558

Merged
merged 17 commits into from
Mar 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into plot_item_allow_hover
  • Loading branch information
haricot authored Aug 14, 2023

Unverified

This user has not yet uploaded their public signing key.
commit bb4af8f4a1628c6142a009b2c2d21970b33c0df4
8 changes: 8 additions & 0 deletions crates/egui/src/widgets/plot/items/mod.rs
Original file line number Diff line number Diff line change
@@ -838,7 +838,9 @@ pub struct Points {
pub(super) name: String,

pub(super) highlight: bool,

pub(super) allow_hover: bool,

pub(super) stems: Option<f32>,
}

@@ -1110,6 +1112,12 @@ impl Arrows {
self
}

/// Set the length of the arrow tips
pub fn tip_length(mut self, tip_length: f32) -> Self {
self.tip_length = Some(tip_length);
self
}

/// Set the arrows' color.
pub fn color(mut self, color: impl Into<Color32>) -> Self {
self.color = color.into();
You are viewing a condensed version of this merge commit. You can view the full changes here.