Briefly, draw_key_polygon() used to cap the linewidth aesthetic to some portion of the key size. Now that we can let the grobs contribute to key sizes, it is more straightforward to use that mechanism than have the legend display incorrect linewidths.
This PR aims to fix #4852.
Briefly,
draw_key_polygon()
used to cap thelinewidth
aesthetic to some portion of the key size. Now that we can let the grobs contribute to key sizes, it is more straightforward to use that mechanism than have the legend display incorrect linewidths.A reprex similar to the one in the issue:
Created on 2024-03-28 with reprex v2.1.0