stevefaulkner / targetsize

GNU General Public License v3.0
17 stars 6 forks source link

Account for simple non-rectangular shapes #6

Open brothercake opened 1 year ago

brothercake commented 1 year ago

For example, if a button has rounded corners with border-radius then only the area inside the radius is interactive, so a 24x24 button with rounded corners would not meet the minimum size requirement. In order to pass that requirement, a 24x24 square would have to fit entirely inside the interactive area.

This is impractical to cater for with most polygons, but for simple rectangles with rounded corners the maths is fairly do-able.