figma-plugins
figma-plugins copied to clipboard
Sorting layers doesn't take into account the shadow
Sorting layers shouldn't swap layers if one is overlapping another, and it doesn't, however - if there's a layer with a shadow that is below another layer, they will be swapped anyways.
I'm not sure if my description is clear enough so here's an example:
Before sorting
After sorting
This is likely solvable now with the new absoluteRenderBounds
property
https://www.figma.com/plugin-docs/api/FrameNode/#absoluterenderbounds