Skip to content

Commit

Permalink
import grid::grob
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 31, 2024
1 parent 57b9ae7 commit 22d4366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/cross-link.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ cross_link <- function(link, data = waiver(), on_top = TRUE,
}

#' @importFrom ggplot2 ggproto ggproto_parent
#' @importFrom grid grob
#' @include cross-none.R
CrossLink <- ggproto("CrossLink", CrossNone,
build_plot = function(self, plot, design, extra_design = NULL,
Expand Down Expand Up @@ -118,7 +119,7 @@ CrossLink <- ggproto("CrossLink", CrossNone,
) %||% unit(0, "mm")

# setup the grob
grob <- inject(grid::grob(
grob <- inject(grob(
!!!.subset2(plot, "ggalign_link_data"),
spacing1 = spacing,
spacing2 = spacing,
Expand Down

0 comments on commit 22d4366

Please sign in to comment.