utom / sketch-measure

Make it a fun to create spec for developers and teammates
http://utom.design/measure
MIT License
6.91k stars 595 forks source link

Include shadow in specs #260

Open partyparrotgreg opened 7 years ago

partyparrotgreg commented 7 years ago

I have a button (100x36) with shadow (y:4, blur: 8), it will export specs as a 100x36 and it's not including shadow values (when I export the asset it's 116x52, so it adds 8pt on each side and subtracts 4 from y position).

But on the other side, I tested few tricks to walk around this. And if you're exporting this for web design, you need to know the 100x36 value and shadow's properties. So it's fine (of course when you didn't set it as assets). But if it's set as an asset it should include the shadow properties and maybe the borders as well (everything "outside" the object)

Is it possible to implement this? 🍻

forestlin1212 commented 7 years ago

hi @halol ,I have a solution for this issue. I have made a pull request to utom, wish the feature will be taken in next version.

If you need it now, you can go to my side, try the special version of Sketch Measure. Give me some feedback.

luxlogica commented 7 years ago

I believe this has now been covered in the latest version (0.2.3) with the "Export Layer of Influence Rect" option - the issue can be closed.