pub fn length(data: impl PathData, transform: Option<Transform>) -> f32
Computes the total length of the path.