Skip to main content

center_from_semantics

Function center_from_semantics 

Source
pub fn center_from_semantics(
    semantics: &[(ElementId, SemanticsData)],
    el_id: ElementId,
) -> Option<Point>
Expand description

从语义快照中取元素的中心点(逻辑像素);找不到返回 None。