resolve_gap_native: Resolve a 'gap' option to a numeric in native units inside...

View source: R/label_placement.R

resolve_gap_nativeR Documentation

Resolve a gap option to a numeric in native units inside the current measurement viewport. NULL → falls back to padding_native so the visible leader-tip gap matches the spacing between label and quantity. A grid::unit value converts to native; a bare numeric is interpreted as lines (same convention as eulerr_options()$padding).

Description

Resolve a gap option to a numeric in native units inside the current measurement viewport. NULL → falls back to padding_native so the visible leader-tip gap matches the spacing between label and quantity. A grid::unit value converts to native; a bare numeric is interpreted as lines (same convention as eulerr_options()$padding).

Usage

resolve_gap_native(gap, padding_native)

Arguments

gap

the user-supplied gap: NULL, a grid::unit(), or a bare numeric in lines

padding_native

the fallback used when gap is NULL, in native units


eulerr documentation built on Aug. 22, 2026, 1:09 a.m.