opts_toolbar() gains arguments
bg_color, icon_color,
icon_active_color and icon_hover_color to set
the colors of the toolbar. These colors are CSS variables that can also
be set in a stylesheet for all the graphics of a document
(#355).
dsvg() now supports the graphics engine features of
R 4.2 and 4.3: luminance masks,
grid.stroke()/grid.fill()/grid.fillStroke(),
groups with their transformations and compositing operators
(grid.group(), grid.define(),
grid.use()), and glyphs (glyphGrob()).
Packages that use them now render correctly in ggiraph graphics, in
particular ‘marquee’: its texts are drawn faster and sharper, and texts
with a background (inline code, heading rules) are no longer missing.
dev.capabilities() reports what dsvg() can
draw. Only the ‘saturate’ compositing operator has no SVG equivalent and
is drawn as ‘over’ with a warning.
match_family() is deprecated: use
systemfonts::match_fonts() instead. It is no longer used by
ggiraph, and its equivalent in ‘gdtools’ is deprecated too.girafeOutput() now fills its container when
it is in a fillable layout, e.g. a card of
bslib::page_fillable(): the graphic follows the size of the
card, keeping its aspect ratio. Without height, it starts
from 400px as plotOutput() (#353).fseeko64(), which only exists on
Linux with glibc (#357, thanks to @przmv).width_svg/height_svg are
displayed entirely, whatever the browser (#354).girafe() and dsvg() are faster when many
fonts are installed: the Liberation fonts are only looked up when the
fonts supplied miss a family, and the supplied fonts are checked with a
single listing of the system fonts. With a complete
font_set, girafe() lists the system fonts once
instead of 12 times (#359, #360).girafe.js was loaded twice in each document:
girafe.yaml still declared it as a dependency, in addition
to the widget binding added by htmlwidgets. Only the stylesheet is now
declared there (#361, #351)._R_CHECK_DEPENDS_ONLY_: truegirafe_class_add(),
girafe_class_remove() and
girafe_class_toggle() allow programmatic manipulation of
CSS classes on girafe SVG elements from Shiny. Elements are targeted by
data_id, key_id or theme_id
(#321).opts_hover() and opts_selection() gain a
new linked parameter. When linked = TRUE,
hover and selection states are shared between geometry elements
(data-id) and legend/guide elements (key-id):
hovering or clicking a legend key highlights or selects the
corresponding geometries, and vice versa (#330).girafe() with argument
ggobj in first position. IT DOES NOT makes ggplot objects
pipe-able with girafe() (unless you add parenthesis around
your ggplot code).girafe() are now merged with defaults
from set_girafe_defaults() instead of replacing them
entirely. This allows setting global styles while overriding specific
parameters per plot (#328).subgroup” warning
when using geom_segment_interactive() or
geom_path_interactive() with coord_polar()
(#344).ggbeeswarm::geom_quasirandom, see
geom_quasirandom_interactive().default_on parameter to opts_zoom() to
automatically activate pan/zoom mode when plot is rendered.opts_toolbar() documentation and examples to
better demonstrate the hidden parameter for customizing
which toolbar buttons are displayed.register_liberationsans()).check_fonts_registered and
check_fonts_dependencies arguments to girafe()
to validate that fonts used in plots are properly registered and
available in HTML dependencies.zoom_off state in toolbar not
being applied correctly.geom_ribbon_interactive() hover behavior so all
ribbon parts (upper, lower, fill) with same data_id react
together.geom_line_interactive() and
geom_path_interactive() with mismatched lengths of
ids message when data have NA.shinyWidgets::genIdfont_family_exists() was a duplicated function from
‘gdtools’, as ‘gdtools’ is now imported it makes no sense to keep the
duplicate. Use gdtools::font_family_exists() instead of
ggiraph::font_family_exists().facet_wrap_interactive()
that was causing issues when there were more than 9 levels.requireNamespace in the example for
R >= 4.5.1.This patch switches to using png from the system, when available via ‘pkg-config’ or otherwise using hard-coded library dependencies. It makes the package work with png from ‘Rtools42-45’. Behavior with previous versions of R is not affected, as this uses the ‘.ucrt’ version of Makevars. Using libraries from the system/Rtools when available is required by the CRAN repository policy. Also, it silences a warning […] about using non-allowed external symbols.
geom_line_interactive() now correctly assigns data_id
and tooltip valuesggiraph(), ggiraphOutput() and
renderggiraph().girafeOutput() argument height now
defaults to NULL. Set height to “500px” to recover previous
disposition.opts_toolbar(fixed = TRUE).ggobj is used)bg is set to ‘transparent’, it’s been transformed
to almost transparent ‘#ffffff01’.Rf_error("... (%S)", note); to
Rf_error("... (%s)", note);ggiraph(), ggiraphOutput()
and renderggiraph().girafe() gains new argument
dependencies that pass additional widget HTML dependencies
to htmlwidgets::createWidget().src/raster.cpp.set_girafe_defaults(),
girafe_defaults() and init_girafe_defaults()
to set some default girafe options automatically. Also in R Markdown,
svg default width and height are set to knitr chunk options
fig.width and fig.height.3.4.0.facet_wrap_interactive() or
facet_grid_interactive() need to be used to let the facets
be interactives (see also labeller_interactive()).test-zz-dom.R when ‘PhantomJS’ is not
installedtest-interactive_text_grob.R and
test-fonts.R when no font is detected on the system.geom_violin_interactive,
geom_label_repel_interactive,
geom_text_repel_interactive,
geom_contour_filled_interactive,
geom_hex_interactive, geom_spoke_interactive,
geom_curve_interactive,
geom_count_interactive,
geom_bin_2d_interactive,
geom_density_2d_filled_interactive.interactive_curve_grob.scale_alpha_binned_interactive.outputArgs argument to renderGirafe,
for controlling svg dimensions in rmarkdownextra_interactive_params argumenttinyxml2 to version 9.0.0tinytest for testingggplot2 to version
3.3.5.interactive_text_grob when check.overlap =
TRUEinteractive_points_grob interactive attributes
when shapes with lines are usedgeom_errorbar_interactiveGeomInteractiveTilegeom_dotplot_interactive.labeller_interactive to make strip labels
interactive.validated_fonts() and also
match_family() and font_family_exists() that
have been copied from package gdtools.girafe_css() to define individual css
properties per type of elementsannotate_interactive function.girafe() and
girafe_options() to be used instead of function
ggiraph(). It is more convenient to use when customization
is needed.geom_sf_interactivegeom_hline_interactive and
geom_vline_interactive implemented by Eric Book.GeomInteractive are exported.dep_dir that controls the
location of the output files.use_widget_size and
flexdashboard. I hope this is the last mention to theses in
the NEWS file.flexdashboard and width are no
more deprecated…use_widget_size that force
usage of htmlwidget size and block the responsive behavior.flexdashboard and width
are now deprecated and have no effectsflexdashboard to make sure the graph fits
available room.