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)

eulerr documentation built on May 30, 2026, 1:07 a.m.