-
Notifications
You must be signed in to change notification settings - Fork 2
Description
👋 @panr! I understand that you might not have capacity for this project, but want to suggest an small improvement anyway.
Because of how Figma deals with vector coordinates, a lot of them end up having very high precision. This is not needed in practice once the JSON is exported:
It'd be great if there was an option to snap the coordinates to a user-chosen grid, e.g. 1/2, 1/10, 1/20 of a pixel. This can significantly reduce the size of the resulting JSON and improve its compression. If I understand correctly, Figma's fractional coordinates have pretty high entropy so don't gzip well.
I know that it's possible to post-process the JSON but that's an extra step which everyone needs to do on their own. Snapping inside of the plugin feels like the right place.
WDYT?
Happy to give this feature a try if you have capacity to release the plugin afterwards. If you have moved on and you know a better solution for exporting icons, please let me know! Either way, thanks for this neat handy plugin!