Skip to content

Commit

Permalink
attach the spacing and groups to the link data
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jan 1, 2025
1 parent a6fdc0e commit 2fe3644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion R/link.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion R/mark.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2fe3644

Please sign in to comment.