Function re_space_view_spatial::visualizers::utilities::labels::process_labels
source · pub fn process_labels<'a, P: 'a>(
batch: LabeledBatch<'a, P, impl Iterator<Item = P> + 'a>,
target_from_position: impl Fn(P) -> UiLabelTarget + 'a
) -> impl Iterator<Item = UiLabel> + 'a
Expand description
Produces ui labels from component data, allowing the caller to produce UiLabelTarget
s
as they see fit.
Implements policy for displaying a single label vs. per-instance labels, or hiding labels.