
Convert a grouped layout to a dragmapr editing state
Source:R/layout_quality.R
as_dragmapr_state.RdProduces a dragmapr::dragmapr_state() – the shared editorial composition
contract – from a grouped_exploded_map. Unlike as_dragmapr(), which
bundles geometry and absolute anchors into a handoff list, this emits the
geometry-free state that the interactive editor and static renderers
consume: the exploded anchors (anchor_x/anchor_y) are converted to the
metre deltas (dx_m/dy_m) relative to the current region centroids that
dragmapr expects, and the projected CRS plus a provenance geometry_id
are recorded so the state can be reapplied safely in a later session.
Value
A dragmapr_state (see dragmapr::dragmapr_state()).