Browse Source

pre-CRAN flight check

tags/0.8.0
boB Rudis 6 years ago
parent
commit
45c8046344
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 12
      .Rbuildignore
  2. 8
      DESCRIPTION
  3. 5
      R/flush-ticks.R
  4. 8
      R/zzz.r
  5. 14
      cran-comments.md
  6. 5
      man/flush_ticks.Rd
  7. 54
      man/scale_ipsum.Rd
  8. 10
      tests/figs/deps.txt
  9. 86
      tests/figs/themes/theme-ipsum-rc.svg
  10. 88
      tests/figs/themes/theme-ipsum.svg
  11. 14
      tests/testthat/test-hrbrthemes.R
  12. 4
      tests/testthat/test-themes.R

12
.Rbuildignore

@ -1,14 +1,10 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.travis\.yml$
^README\.*Rmd$
^README\.*html$
^NOTES\.*Rmd$
^NOTES\.*html$
^notes\.txt$
^README*$
^NOTES*$
^NOTES*$
^notes*$
^CONDUCT\.md$
^README_files$
^notes$
^cran-comments\.md$
^README_figs$
^docs$

8
DESCRIPTION

@ -2,7 +2,7 @@ Package: hrbrthemes
Type: Package
Title: Additional Themes, Theme Components and Utilities for 'ggplot2'
Version: 0.5.0
Date: 2017-12-20
Date: 2018-04-24
Authors@R: c(
person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5670-2640")),
@ -34,13 +34,11 @@ Suggests:
clipr,
vdiffr,
svglite
SystemRequirements: xclip <http://sourceforge.net/projects/xclip/> or xsel
<http://www.vergenet.net/~conrad/software/xsel/> for accessing the X11 cliboard
(only if clipboard functionality is desired)
clipboardDepends:
Depends:
R (>= 3.2.0)
Imports:
ggplot2 (>= 2.2.1),
grDevices,
grid,
scales,
extrafont,

5
R/flush-ticks.R

@ -8,9 +8,6 @@
#' it) so if the plt takes a while (i.e. has lots of data or transforms) this will also
#' take a while.
#'
#' If `clipr` is installed and `cat` is `TRUE` then the `theme(...)` statements will
#' be copied to the clipboard as well as displayed (via `cat()`) in the console.
#'
#' @md
#' @param gg ggplot2 plot object
#' @param flush either "`X`" or "`Y`" or "`XY`" to flush individual or both axes. Default: both.
@ -18,7 +15,6 @@
#' @param cat if `TRUE` then display `theme()` statements and copy them to the clipboard
#' @return ggplot2 object with `theme()` elements added
#' @note Intended for basic, fixed-scale plots only (i.e. does not handle free scales in facets).
#' Also, the clipboard operations will only occur if `clipr` is installed.
#' @export
flush_ticks <- function(gg, flush="XY", plot=TRUE, cat=TRUE) {
@ -57,7 +53,6 @@ flush_ticks <- function(gg, flush="XY", plot=TRUE, cat=TRUE) {
if (cat) {
stmts <- paste0(stmts, collapse=" +\n")
if (requireNamespace("clipr", quietly = TRUE)) clipr::write_clip(stmts)
cat(stmts, sep="\n")
}

8
R/zzz.r

@ -1,9 +1,9 @@
.onAttach <- function(libname, pkgname) {
if (interactive()) {
packageStartupMessage(paste0("hrbrthemes is under *active* development. ",
"See https://github.com/hrbrmstr/hrbrthemes for info/news."))
}
# if (interactive()) {
# packageStartupMessage(paste0("hrbrthemes is under *active* development. ",
# "See https://github.com/hrbrmstr/hrbrthemes for info/news."))
# }
# Suggestion by @alexwhan

14
cran-comments.md

@ -1,21 +1,21 @@
## Test environments
* local OS X install + travis-ci, R 3.3.2 & devel
* local OS X install + travis-ci, R 3.5.0 & devel
* ubuntu 14.04 (on travis-ci), R oldrel, current, devel
* win-builder (devel and release)
* rhub::check_for_cran()
## R CMD check results
0 errors | 0 warnings | 1 note (new pkg)
0 errors | 0 warnings | 0 notes
* This is a new release.
* This is an update and CRAN-fix release.
## Reverse dependencies
This is a new release, so there are no reverse dependencies.
- BAwiR
- fontHind
- fontMPlus
---
* Full test suite (which ran within timings on win-builder)
w/100% code-coverage
* Vignette included

5
man/flush_ticks.Rd

@ -27,11 +27,6 @@ of geoms, coords, scales, themes, etc. It also builds the plot (but does not dis
it) so if the plt takes a while (i.e. has lots of data or transforms) this will also
take a while.
}
\details{
If \code{clipr} is installed and \code{cat} is \code{TRUE} then the \code{theme(...)} statements will
be copied to the clipboard as well as displayed (via \code{cat()}) in the console.
}
\note{
Intended for basic, fixed-scale plots only (i.e. does not handle free scales in facets).
Also, the clipboard operations will only occur if \code{clipr} is installed.
}

54
man/scale_ipsum.Rd

@ -13,58 +13,8 @@ scale_color_ipsum(...)
scale_fill_ipsum(...)
}
\arguments{
\item{...}{Arguments passed on to \code{discrete_scale}
\describe{
\item{breaks}{One of:
\itemize{
\item \code{NULL} for no breaks
\item \code{waiver()} for the default breaks computed by the
transformation object
\item A character vector of breaks
\item A function that takes the limits as input and returns breaks
as output
}}
\item{limits}{A character vector that defines possible values of the scale
and their order.}
\item{drop}{Should unused factor levels be omitted from the scale?
The default, \code{TRUE}, uses the levels that appear in the data;
\code{FALSE} uses all the levels in the factor.}
\item{na.translate}{Unlike continuous scales, discrete scales can easily show
missing values, and do so by default. If you want to remove missing values
from a discrete scale, specify \code{na.translate = FALSE}.}
\item{na.value}{If \code{na.translate = TRUE}, what value aesthetic
value should missing be displayed as? Does not apply to position scales
where \code{NA} is always placed at the far right.}
\item{aesthetics}{The names of the aesthetics that this scale works with}
\item{scale_name}{The name of the scale}
\item{palette}{A palette function that when called with a single integer
argument (the number of levels in the scale) returns the values that
they should take}
\item{name}{The name of the scale. Used as axis or legend title. If
\code{waiver()}, the default, the name of the scale is taken from the first
mapping used for that aesthetic. If \code{NULL}, the legend title will be
omitted.}
\item{labels}{One of:
\itemize{
\item \code{NULL} for no labels
\item \code{waiver()} for the default labels computed by the
transformation object
\item A character vector giving labels (must be same length as \code{breaks})
\item A function that takes the breaks as input and returns labels
as output
}}
\item{expand}{Vector of range expansion constants used to add some
padding around the data, to ensure that they are placed some distance
away from the axes. Use the convenience function \code{\link[=expand_scale]{expand_scale()}}
to generate the values for the \code{expand} argument. The defaults are to
expand the scale by 5\% on each side for continuous variables, and by
0.6 units on each side for discrete variables.}
\item{guide}{A function used to create a guide or its name. See
\code{\link[=guides]{guides()}} for more info.}
\item{position}{The position of the axis. "left" or "right" for vertical
scales, "top" or "bottom" for horizontal scales}
\item{super}{The super class to use for the constructed scale}
}}
\item{...}{Other arguments passed on to \code{\link{discrete_scale}}
to control name, limits, breaks, labels and so forth.}
}
\description{
See \url{ipsum_pal}.

10
tests/figs/deps.txt

@ -1,6 +1,6 @@
Fontconfig: 2.12.1
FreeType: 2.7.0
Cairo: 1.14.6
vdiffr: 0.2.1
Fontconfig: 2.12.6
FreeType: 2.9.0
Cairo: 1.14.12
vdiffr: 0.2.2
svglite: 1.2.1
ggplot2: 2.2.1.9000
ggplot2: 2.2.1

86
tests/figs/themes/theme-ipsum-rc.svg

@ -13,63 +13,63 @@
</defs>
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
<defs>
<clipPath id='cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ=='>
<rect x='62.38' y='75.12' width='581.18' height='447.46' />
<clipPath id='cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg=='>
<rect x='61.75' y='75.13' width='581.71' height='447.82' />
</clipPath>
</defs>
<polyline points='62.38,451.39 643.56,451.39 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,349.70 643.56,349.70 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,248.00 643.56,248.00 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,146.31 643.56,146.31 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='154.84,522.58 154.84,75.12 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='286.92,522.58 286.92,75.12 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='419.01,522.58 419.01,75.12 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='551.10,522.58 551.10,75.12 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,502.24 643.56,502.24 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,400.55 643.56,400.55 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,298.85 643.56,298.85 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,197.16 643.56,197.16 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='62.38,95.46 643.56,95.46 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='88.79,522.58 88.79,75.12 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='220.88,522.58 220.88,75.12 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='352.97,522.58 352.97,75.12 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='485.05,522.58 485.05,75.12 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='617.14,522.58 617.14,75.12 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<circle cx='88.79' cy='502.24' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<circle cx='352.97' cy='298.85' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<circle cx='617.14' cy='95.46' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDUyMi41ODJ8NzUuMTIwMQ==)' />
<polyline points='61.75,451.70 643.46,451.70 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,349.92 643.46,349.92 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,248.15 643.46,248.15 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,146.37 643.46,146.37 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='154.29,522.95 154.29,75.13 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='286.50,522.95 286.50,75.13 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='418.71,522.95 418.71,75.13 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='550.91,522.95 550.91,75.13 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,502.59 643.46,502.59 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,400.81 643.46,400.81 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,299.04 643.46,299.04 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,197.26 643.46,197.26 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='61.75,95.48 643.46,95.48 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='88.19,522.95 88.19,75.13 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='220.40,522.95 220.40,75.13 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='352.60,522.95 352.60,75.13 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='484.81,522.95 484.81,75.13 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<polyline points='617.02,522.95 617.02,75.13 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<circle cx='88.19' cy='502.59' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<circle cx='352.60' cy='299.04' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<circle cx='617.02' cy='95.48' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw1MjIuOTQ1fDc1LjEyNg==)' />
<defs>
<clipPath id='cpMHw3MjB8NTc2fDA='>
<rect x='0.00' y='0.00' width='720.00' height='576.00' />
</clipPath>
</defs>
<defs>
<clipPath id='cpNjIuMzc3Mnw2NDMuNTU2fDc1LjEyMDF8NTUuMTMxOA=='>
<rect x='62.38' y='55.13' width='581.18' height='19.99' />
<clipPath id='cpNjEuNzV8NjQzLjQ1OHw3NS4xMjZ8NTUuMTM3Nw=='>
<rect x='61.75' y='55.14' width='581.71' height='19.99' />
</clipPath>
</defs>
<g clip-path='url(#cpNjIuMzc3Mnw2NDMuNTU2fDc1LjEyMDF8NTUuMTMxOA==)'><text x='68.11' y='69.39' style='font-size: 12.00px; fill: #1A1A1A; font-family: Roboto Condensed;' textLength='5.92px' lengthAdjust='spacingAndGlyphs'>1</text></g>
<g clip-path='url(#cpNjEuNzV8NjQzLjQ1OHw3NS4xMjZ8NTUuMTM3Nw==)'><text x='61.75' y='69.40' style='font-size: 12.00px; fill: #1A1A1A; font-family: Roboto Condensed;' textLength='5.92px' lengthAdjust='spacingAndGlyphs'>1</text></g>
<defs>
<clipPath id='cpMHw3MjB8NTc2fDA='>
<rect x='0.00' y='0.00' width='720.00' height='576.00' />
</clipPath>
</defs>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='81.29' y='533.98' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='213.38' y='533.98' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='345.46' y='533.98' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='477.55' y='533.98' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='609.64' y='533.98' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='506.51' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='404.81' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='303.12' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='201.42' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='99.72' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='15.01px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='639.61' y='546.11' style='font-size: 9.00px; font-family: Roboto Condensed;' textLength='3.95px' lengthAdjust='spacingAndGlyphs'>x</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='81.00' y='533.99' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='213.21' y='533.99' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='345.41' y='533.99' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='477.62' y='533.99' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='609.83' y='533.99' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='506.68' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='404.90' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='303.12' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='201.35' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.51' y='99.57' style='font-size: 11.50px; fill: #4D4D4D; font-family: Roboto Condensed;' textLength='14.38px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='639.51' y='546.11' style='font-size: 9.00px; font-family: Roboto Condensed;' textLength='3.95px' lengthAdjust='spacingAndGlyphs'>x</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text transform='translate(36.29,78.87) rotate(-90)' style='font-size: 9.00px; font-family: Roboto Condensed;' textLength='3.75px' lengthAdjust='spacingAndGlyphs'>y</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='660.56' y='283.70' style='font-size: 11.50px; font-family: Roboto Condensed;' textLength='5.27px' lengthAdjust='spacingAndGlyphs'>z</text></g>
<circle cx='669.20' cy='296.61' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<circle cx='669.20' cy='313.89' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.00' y='299.81' style='font-size: 9.20px; font-family: Roboto Condensed;' textLength='4.31px' lengthAdjust='spacingAndGlyphs'>a</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.00' y='317.09' style='font-size: 9.20px; font-family: Roboto Condensed;' textLength='4.44px' lengthAdjust='spacingAndGlyphs'>b</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='62.38' y='42.68' style='font-size: 18.00px; font-weight: bold; font-family: Roboto Condensed;' textLength='117.44px' lengthAdjust='spacingAndGlyphs'>theme_ipsum_rc</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='660.47' y='283.68' style='font-size: 11.50px; font-family: Roboto Condensed;' textLength='5.05px' lengthAdjust='spacingAndGlyphs'>z</text></g>
<circle cx='669.11' cy='296.64' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<circle cx='669.11' cy='313.92' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='679.91' y='299.91' style='font-size: 9.20px; font-family: Roboto Condensed;' textLength='4.41px' lengthAdjust='spacingAndGlyphs'>a</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='679.91' y='317.19' style='font-size: 9.20px; font-family: Roboto Condensed;' textLength='4.54px' lengthAdjust='spacingAndGlyphs'>b</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='61.75' y='42.68' style='font-size: 18.00px; font-weight: bold; font-family: Roboto Condensed;' textLength='117.44px' lengthAdjust='spacingAndGlyphs'>theme_ipsum_rc</text></g>
</svg>

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

88
tests/figs/themes/theme-ipsum.svg

@ -13,63 +13,63 @@
</defs>
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
<defs>
<clipPath id='cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz'>
<rect x='61.08' y='75.28' width='582.81' height='447.21' />
<clipPath id='cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA=='>
<rect x='60.52' y='75.27' width='583.27' height='447.57' />
</clipPath>
</defs>
<polyline points='61.08,451.34 643.89,451.34 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,349.70 643.89,349.70 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,248.06 643.89,248.06 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,146.42 643.89,146.42 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='153.80,522.49 153.80,75.28 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='286.26,522.49 286.26,75.28 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='418.72,522.49 418.72,75.28 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='551.17,522.49 551.17,75.28 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,502.16 643.89,502.16 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,400.52 643.89,400.52 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,298.88 643.89,298.88 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,197.24 643.89,197.24 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='61.08,95.60 643.89,95.60 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='87.58,522.49 87.58,75.28 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='220.03,522.49 220.03,75.28 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='352.49,522.49 352.49,75.28 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='484.94,522.49 484.94,75.28 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='617.40,522.49 617.40,75.28 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<circle cx='87.58' cy='502.16' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<circle cx='352.49' cy='298.88' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<circle cx='617.40' cy='95.60' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NTIyLjQ4OHw3NS4yNzYz)' />
<polyline points='60.52,451.64 643.80,451.64 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,349.92 643.80,349.92 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,248.20 643.80,248.20 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,146.48 643.80,146.48 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='153.32,522.84 153.32,75.27 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='285.88,522.84 285.88,75.27 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='418.44,522.84 418.44,75.27 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='551.01,522.84 551.01,75.27 ' style='stroke-width: 0.32; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,502.50 643.80,502.50 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,400.78 643.80,400.78 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,299.06 643.80,299.06 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,197.34 643.80,197.34 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='60.52,95.62 643.80,95.62 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='87.04,522.84 87.04,75.27 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='219.60,522.84 219.60,75.27 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='352.16,522.84 352.16,75.27 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='484.72,522.84 484.72,75.27 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<polyline points='617.29,522.84 617.29,75.27 ' style='stroke-width: 0.43; stroke: #CCCCCC; stroke-linecap: butt;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<circle cx='87.04' cy='502.50' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<circle cx='352.16' cy='299.06' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<circle cx='617.29' cy='95.62' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDUyMi44NDV8NzUuMjcyNA==)' />
<defs>
<clipPath id='cpMHw3MjB8NTc2fDA='>
<rect x='0.00' y='0.00' width='720.00' height='576.00' />
</clipPath>
</defs>
<defs>
<clipPath id='cpNjEuMDg0Mnw2NDMuODl8NzUuMjc2M3w1NS4yMjU2'>
<rect x='61.08' y='55.23' width='582.81' height='20.05' />
<clipPath id='cpNjAuNTI0OXw2NDMuNzk5fDc1LjI3MjR8NTUuMjI1Ng=='>
<rect x='60.52' y='55.23' width='583.27' height='20.05' />
</clipPath>
</defs>
<g clip-path='url(#cpNjEuMDg0Mnw2NDMuODl8NzUuMjc2M3w1NS4yMjU2)'><text x='66.81' y='69.55' style='font-size: 12.00px; fill: #1A1A1A; font-family: Arial Narrow;' textLength='5.47px' lengthAdjust='spacingAndGlyphs'>1</text></g>
<g clip-path='url(#cpNjAuNTI0OXw2NDMuNzk5fDc1LjI3MjR8NTUuMjI1Ng==)'><text x='60.52' y='69.54' style='font-size: 12.00px; fill: #1A1A1A; font-family: Arial Narrow;' textLength='5.47px' lengthAdjust='spacingAndGlyphs'>1</text></g>
<defs>
<clipPath id='cpMHw3MjB8NTc2fDA='>
<rect x='0.00' y='0.00' width='720.00' height='576.00' />
</clipPath>
</defs>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='80.73' y='533.95' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='213.19' y='533.95' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='345.65' y='533.95' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='478.10' y='533.95' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='610.56' y='533.95' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.54' y='506.46' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.54' y='404.82' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.54' y='303.18' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.54' y='201.54' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.54' y='99.90' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.68px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='640.20' y='546.11' style='font-size: 9.00px; font-family: Arial Narrow;' textLength='3.69px' lengthAdjust='spacingAndGlyphs'>x</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text transform='translate(36.33,78.97) rotate(-90)' style='font-size: 9.00px; font-family: Arial Narrow;' textLength='3.69px' lengthAdjust='spacingAndGlyphs'>y</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='660.90' y='283.75' style='font-size: 11.50px; font-family: Arial Narrow;' textLength='4.92px' lengthAdjust='spacingAndGlyphs'>z</text></g>
<circle cx='669.54' cy='296.69' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<circle cx='669.54' cy='313.97' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.34' y='299.91' style='font-size: 9.20px; font-family: Arial Narrow;' textLength='4.10px' lengthAdjust='spacingAndGlyphs'>a</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.34' y='317.19' style='font-size: 9.20px; font-family: Arial Narrow;' textLength='4.10px' lengthAdjust='spacingAndGlyphs'>b</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='61.08' y='42.78' style='font-size: 18.00px; font-weight: bold; font-family: Arial Narrow;' textLength='95.15px' lengthAdjust='spacingAndGlyphs'>theme_ipsum</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='80.48' y='533.94' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='213.04' y='533.94' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='345.61' y='533.94' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='478.17' y='533.94' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='610.73' y='533.94' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.55' y='506.62' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>1.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.55' y='404.90' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>1.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.55' y='303.17' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>2.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.55' y='201.45' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>2.5</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='44.55' y='99.73' style='font-size: 11.50px; fill: #4D4D4D; font-family: Arial Narrow;' textLength='13.11px' lengthAdjust='spacingAndGlyphs'>3.0</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='640.11' y='546.11' style='font-size: 9.00px; font-family: Arial Narrow;' textLength='3.69px' lengthAdjust='spacingAndGlyphs'>x</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text transform='translate(36.33,78.96) rotate(-90)' style='font-size: 9.00px; font-family: Arial Narrow;' textLength='3.69px' lengthAdjust='spacingAndGlyphs'>y</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='660.81' y='283.73' style='font-size: 11.50px; font-family: Arial Narrow;' textLength='4.72px' lengthAdjust='spacingAndGlyphs'>z</text></g>
<circle cx='669.45' cy='296.69' r='1.95pt' style='stroke-width: 0.71; stroke: #F8766D; fill: #F8766D;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<circle cx='669.45' cy='313.97' r='1.95pt' style='stroke-width: 0.71; stroke: #00BFC4; fill: #00BFC4;' clip-path='url(#cpMHw3MjB8NTc2fDA=)' />
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.25' y='299.99' style='font-size: 9.20px; font-family: Arial Narrow;' textLength='4.20px' lengthAdjust='spacingAndGlyphs'>a</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='680.25' y='317.27' style='font-size: 9.20px; font-family: Arial Narrow;' textLength='4.20px' lengthAdjust='spacingAndGlyphs'>b</text></g>
<g clip-path='url(#cpMHw3MjB8NTc2fDA=)'><text x='60.52' y='42.77' style='font-size: 18.00px; font-weight: bold; font-family: Arial Narrow;' textLength='95.15px' lengthAdjust='spacingAndGlyphs'>theme_ipsum</text></g>
</svg>

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

14
tests/testthat/test-hrbrthemes.R

@ -1,4 +1,4 @@
context("basic functionality")
context("core theme components work")
test_that("we can do something", {
library(purrr)
@ -56,11 +56,10 @@ test_that("we can do something", {
invisible(theme_ipsum(axis=""))
invisible(theme_ipsum_rc(axis=""))
invisible(update_geom_font_defaults())
invisible(import_roboto_condensed())
invisible(theme_ipsum(ticks=TRUE))
invisible(theme_ipsum_rc(ticks=TRUE))
# invisible(update_geom_font_defaults())
# invisible(theme_ipsum(ticks=TRUE))
# invisible(import_roboto_condensed())
# invisible(theme_ipsum_rc(ticks=TRUE))
expect_that(tmp_x1$expand, equals(c(0.01,0)))
expect_that(tmp_x2$expand, equals(c(0.01,0)))
@ -71,5 +70,4 @@ test_that("we can do something", {
expect_that(col$palette(1), equals("#d18975"))
expect_that(fil$palette(1), equals("#d18975"))
})
})

4
tests/testthat/test-themes.R

@ -1,6 +1,10 @@
context("themes")
test_that("themes are correct", {
testthat::skip_on_cran()
testthat::skip_on_appveyor()
testthat::skip_on_travis()
df <- data.frame(x = 1:3, y = 1:3, z = c("a", "b", "a"), a = 1)
plot <- ggplot(df, aes(x, y, colour = z)) +

Loading…
Cancel
Save