pub struct RevealEdge {
pub direction: [f32; 2],
pub progress: f32,
pub feather: f32,
}Expand description
A straight edge that shows a cluster’s unit (its group’s box, outset by the text’s strokes) up
to it, as a linear wipe. In the unit’s own frame, before its transform, the edge’s centre lies
at a - w / 2 + progress (b - a + w) along direction, [a, b] the box’s extent along it and
w the feather, at least a pixel; a point at s keeps clamp((e - s) / w + 0.5, 0, 1) of
itself. Progress 0 hides the unit and 1 shows it whole, exactly.
Fields§
§direction: [f32; 2]The unit vector the edge travels along, +y down.
progress: f32How much of the unit shows, in [0, 1].
feather: f32The edge’s softness in pixels, at least 0.
Trait Implementations§
Source§impl Clone for RevealEdge
impl Clone for RevealEdge
impl Copy for RevealEdge
Source§impl Debug for RevealEdge
impl Debug for RevealEdge
Source§impl PartialEq for RevealEdge
impl PartialEq for RevealEdge
impl StructuralPartialEq for RevealEdge
Auto Trait Implementations§
impl Forget for RevealEdge
impl Freeze for RevealEdge
impl Move for RevealEdge
impl RefUnwindSafe for RevealEdge
impl Send for RevealEdge
impl Sync for RevealEdge
impl Unpin for RevealEdge
impl UnsafeUnpin for RevealEdge
impl UnwindSafe for RevealEdge
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