Skip to main content

handle_path_data

Function handle_path_data 

Source
pub fn handle_path_data(
    kind: HandleKind,
    tip_x: f32,
    tip_y: f32,
    radius: f32,
) -> String
Expand description

SVG path data for a handle teardrop whose tip sits at (tip_x, tip_y).

The tip is anchored at the text edge (the cursor position or a selection endpoint at the line’s bottom) and the rounded bulb hangs below it, so the caller positions the handle by passing the on-screen anchor point.