tilesfx
tilesfx copied to clipboard
"Pulsing" value for CIRCULAR_PROGRESS
Thank you for the great library first of all! I have noted something for CIRCULAR_PROGRESS tile. Sometimes the value is "pulsing" - become bigger and smaller when actually the value is not changing. I suppose it is "pulsing" if it becomes more longer than certain length. For example: with this value (21.70mv) it is shown OK: With value of 433.30mv (one more digit) it starts "pulsing" slightly: With value of 1111.00mv (two more digit) the "pulsing" is significant: The more value digits, the more sensitive "pulsing". Is this feature or bug ?
Yep I also saw that effect and here is the explanation. I change the font size depending on the length of the value text. This is to make sure that the text fits inside of the ring. The problem is that if the value is around the width that the fontsize will change it might start to "pulse" because it is switching the fontsize between different values. A solution to this might be the use of discrete fontsize steps but this is not implemented yet...well and contributions are welcome ;)