From dfcad3d0b8b13af23c361d3b382f695224921cd8 Mon Sep 17 00:00:00 2001 From: Jared Knowles Date: Thu, 15 Oct 2026 15:27:55 -0400 Subject: [PATCH] chore(packaging): bump version to 0.3.2 and record fixes in NEWS Co-Authored-By: Claude Sonnet 5.5 --- DESCRIPTION | 2 +- NEWS.md | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4f6f6b2..df566e0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: civilytics Type: Package Title: Brand Themes, Color Palettes, and Utility Functions for Civilytics -Version: 0.3.1 +Version: 0.3.2 Authors@R: person("Jared", "E. Knowles", email = "jared@civilytics.com", role = c("aut", "cre")) diff --git a/NEWS.md b/NEWS.md index 4582882..e77c0e9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,11 +1,35 @@ # civilytics 0.3.2 ## New features +- `civilytics_logo()` and `add_logo()` gain `logo_height` (inches, default `0.5`), + the height of a band reserved for the logo. +- `patchwork` is now a suggested package, used when a patchwork composition is + passed to `civilytics_logo()`. - Added comprehensive test coverage for the `prop_conf` module, including correctness checks against `binom.test()` for Clopper-Pearson intervals and formula-based verification for Wald and Agresti-Coull intervals. ## Bug fixes +- `civilytics_logo()` / `add_logo()` now render every panel and the + `plot_annotation()` of a patchwork composition. They previously drew only the + last panel (#20). +- The logo now sits in its own reserved band instead of pulling the plot down with + negative margins, so captions are no longer clipped at the bottom edge and the + layout no longer depends on whether showtext is active (#20). +- The logo keeps its own aspect ratio on any canvas. `make_logo_grob()` used to + stretch it to a fixed fraction of the plot width, so its shape changed with + the canvas and it was already about 1.5 times too wide at 11 by 7 inches (#20). +- `font_scale` now defaults to `1` in `civilytics_logo()`, `add_logo()` and + `add_logo_ga()`. The old default of `1.1` enlarged the base text by 10% whenever + a logo was added. Pass `font_scale = 1.1` to keep the old sizes (#20). +- `style_flextable_civilytics()` defaults now come from `civilytics_colors` + instead of Bootstrap hex values: header `navy_700`, zebra `paper_2`, outer + border `rule_strong`, inner border `rule`, footer text `ink_3`. Tables built + with the defaults change appearance (#21). +- `civilytics-reveal`: PDF output keeps slide margins, ordered-list numbers no + longer clip at the left edge, and Quarto column widths (`.column width="60%"`) + are honored. Columns without a width stay equal, and the default gap is now + `1.5em` (#25, #26, #27). - Removed vendored headshot images (`Knowles_Headshot_2019_good.jpg`, `Knowles_Headshot_2019_prisma.jpg`) from `inst/img/` to prevent personal photos from being distributed with the package. The `plot_jpeg()` example