pub fn find_text_center<E: SemanticElementLike>(
elements: &[E],
text: &str,
) -> Option<(f32, f32)>Expand description
Find an element by text content in the semantic tree. Returns the center coordinates (x, y) if found.
ยงType Parameters
E: A type implementingSemanticElementLike(e.g.SemanticElement)