pixijs / layout

Library for arranging/resizing pixiJS rendered elements basing on css like configs
https://pixijs.io/layout/
MIT License
75 stars 5 forks source link

Percentage number values can contain fractions #78

Closed albinkong closed 3 months ago

albinkong commented 6 months ago

Currently all percentages are floored before being converted into pixels.

12.5% of 1000px is currently 120px. After this change 12.5% of 1000px is 125px. 12.5% of 100px remains 12px.

I also added as const in a few places. This should turn OVERFLOW from string[] to 'visible' | 'hidden'. I made the same change to CSS_COLOR_NAMES, DISPLAY, POSITION, ALIGN and VERTICAL_ALIGN as well.