You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rasterization support for simple heatmap annotations
Previously only the heatmap body (matrix) supported rasterization via
use_raster. This adds the same capability to simple annotations
(vector/matrix values drawn as colored cells via anno_simple), reducing
PDF/SVG file sizes for large annotations.
Changes:
- Add rasterize_in_viewport() helper to utils.R, encapsulating the
temp-device rasterization pattern from draw_heatmap_body()
- Add raster_param slot to SingleAnnotation class with use_raster,
raster_device, raster_quality, and related parameters
- Wrap annotation drawing in SingleAnnotation draw() with rasterization
when use_raster=TRUE (annotation names remain vector graphics)
- Pass raster params through HeatmapAnnotation constructor to each
SingleAnnotation
- Add annotation_use_raster global option to ht_opt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments