diff --git a/R/link.R b/R/link.R index 973763e8..390f44ac 100644 --- a/R/link.R +++ b/R/link.R @@ -224,7 +224,9 @@ makeContent.ggalignLinkGrob <- function(x) { link$ordering <- l_index link$.hand <- hand link$.index <- d_index - link + ggalign_attr_set( + link, list(spacing = spacing, groups = full_breaks) + ) }) } data <- .mapply(vec_rbind, coords, NULL) diff --git a/R/mark.R b/R/mark.R index 99cecf38..6029fc06 100644 --- a/R/mark.R +++ b/R/mark.R @@ -442,7 +442,9 @@ makeContent.ggalignMarkGtable <- function(x) { link$.hand <- hand link$.index <- d_index panel <- vec_slice(panel_coord, i) - list(panel = panel, link = link) + list(panel = panel, link = ggalign_attr_set( + link, list(spacing = spacing, groups = full_breaks) + )) }) } coords <- vec_interleave(