Skip to content

Commit

Permalink
add NULL method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 16, 2024
1 parent ba575d5 commit 3dd0b54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ S3method(quad_build,HeatmapLayout)
S3method(quad_build,QuadLayout)
S3method(quad_free,default)
S3method(quad_free,uneval)
S3method(quad_layout_add,"NULL")
S3method(quad_layout_add,QuadLayout)
S3method(quad_layout_add,StackLayout)
S3method(quad_layout_add,data.frame)
Expand All @@ -245,6 +246,7 @@ S3method(stack_composer_add,list)
S3method(stack_free,"function")
S3method(stack_free,default)
S3method(stack_free,formula)
S3method(stack_layout_add,"NULL")
S3method(stack_layout_add,CrossLayout)
S3method(stack_layout_add,QuadLayout)
S3method(stack_layout_add,StackLayout)
Expand Down
5 changes: 5 additions & 0 deletions R/layout-quad-add.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ quad_layout_add.list <- function(object, quad, object_name) {
quad
}

#' @export
quad_layout_add.NULL <- function(object, quad, object_name) {
quad
}

#' @export
quad_layout_add.ggalign_with_quad <- function(object, quad, object_name) {
old <- quad@active
Expand Down

0 comments on commit 3dd0b54

Please sign in to comment.