pub struct LabelLodSpec {
pub min_screen_radius_px: f32,
pub max_labels: usize,
pub edge_min_screen_length_px: f32,
pub max_edge_labels: usize,
}Expand description
Label level-of-detail. Both knobs are host-tunable via set_style.
Fields§
§min_screen_radius_px: f32Zoom gate: a label is a candidate only when its node’s on-screen radius (world radius × zoom) is at least this many pixels.
max_labels: usizeImportance cap: at most this many labels per frame; survivors are the top-N by importance = degree, with the current node and its neighbors boosted so the user’s context never loses its labels.
edge_min_screen_length_px: f32Zoom gate for EDGE labels: an edge shorter than this on screen has no room to print a relationship name along it.
max_edge_labels: usizeImportance cap for edge labels, counted separately from max_labels
so turning edge labels on cannot silently evict node labels.
Trait Implementations§
Source§impl Clone for LabelLodSpec
impl Clone for LabelLodSpec
Source§fn clone(&self) -> LabelLodSpec
fn clone(&self) -> LabelLodSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LabelLodSpec
Source§impl Debug for LabelLodSpec
impl Debug for LabelLodSpec
Source§impl Default for LabelLodSpec
impl Default for LabelLodSpec
Source§impl<'de> Deserialize<'de> for LabelLodSpecwhere
LabelLodSpec: Default,
impl<'de> Deserialize<'de> for LabelLodSpecwhere
LabelLodSpec: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LabelLodSpec
impl RefUnwindSafe for LabelLodSpec
impl Send for LabelLodSpec
impl Sync for LabelLodSpec
impl Unpin for LabelLodSpec
impl UnsafeUnpin for LabelLodSpec
impl UnwindSafe for LabelLodSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more