yuanqing / figma-plugins

:fire: Monorepo for my Figma plugins
https://figma.com/@yuanqing
MIT License
239 stars 32 forks source link

Sorting layers doesn't take into account the shadow #35

Open iipanda opened 3 years ago

iipanda commented 3 years ago

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 obraz

After sorting obraz

yuanqing commented 2 years ago

This is likely solvable now with the new absoluteRenderBounds property

https://www.figma.com/plugin-docs/api/FrameNode/#absoluterenderbounds