Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
400 stars 73 forks source link

feat(Shape): Add manual size hinting #1394

Closed Kruptein closed 7 months ago

Kruptein commented 7 months ago

To snap a shape to the grid, PA needs to know how many grid cells something is supposed to represent.

PA does this by doing a best effort guess from the width/height of the shape. This can however for multiple reasons be wrong (e.g. it might be an asset with a lot of transparency causing the width to be inflated).

This PR adds a new option to manually configure the size instead.

It should be noted that this is a single number that applies in all directions.

A known bug right now is that the UI will not update the inferred size if you resize a shape while the UI is open.