Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 'clippingPathGrob()' and 'alphaMaskGrob()' improvements #78

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

trevorld
Copy link
Owner

  • clippingPathGrob() can now more efficiently compute a rasterGrob() approximation via ragg::agg_capture() and for png_device functions that support the clipping path feature such aspng(type = "cairo")(Deprecate clippingPathGrob()? #74).
  • alphaMaskGrob() can now more efficiently compute a rasterGrob() approximation for png_device functions that support the alpha mask feature such aspng(type = "cairo")(alphaMaskGrob() also can "direct capture" from built-in cairo device #75).
  • alphaMaskGrob() and clippingPathGrob() now switch back to the previously open graphics device if they open and close any new graphics devices.

closes #74, closes #75

* `clippingPathGrob()` can now more efficiently compute a `rasterGrob()` approximation
  via `ragg::agg_capture()` and for `png_device` functions that support
  the clipping path feature such as`png(type = "cairo")`(#74).
* `alphaMaskGrob()` can now more efficiently compute a `rasterGrob()` approximation
  for `png_device` functions that support
  the alpha mask feature such as`png(type = "cairo")`(#75).
* `alphaMaskGrob()` and `clippingPathGrob()` now
  switch back to the previously open graphics device if
  they open and close any new graphics devices.

closes #74, closes #75
@trevorld trevorld merged commit 92b860a into main Apr 25, 2024
3 checks passed
@trevorld trevorld deleted the better-capture branch April 25, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alphaMaskGrob() also can "direct capture" from built-in cairo device Deprecate clippingPathGrob()?
1 participant