nikolaydubina / treemap

🍬 Pretty Treemaps
153 stars 2 forks source link

Fix: text width calculation #28

Closed mlange-42 closed 1 year ago

mlange-42 commented 1 year ago

Use the text length in runes, not bytes.

codecov[bot] commented 1 year ago

Codecov Report

Base: 52.39% // Head: 52.73% // Increases project coverage by +0.34% :tada:

Coverage data is based on head (428d765) compared to base (74fc4bd). Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head 428d765 differs from pull request most recent head 87707e1. Consider uploading reports for the commit 87707e1 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #28 +/- ## ========================================== + Coverage 52.39% 52.73% +0.34% ========================================== Files 7 7 Lines 584 584 ========================================== + Hits 306 308 +2 + Misses 274 272 -2 Partials 4 4 ``` | [Impacted Files](https://codecov.io/gh/nikolaydubina/treemap/pull/28?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nikolay+Dubina) | Coverage Δ | | |---|---|---| | [render/render.go](https://codecov.io/gh/nikolaydubina/treemap/pull/28/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nikolay+Dubina#diff-cmVuZGVyL3JlbmRlci5nbw==) | `1.85% <100.00%> (+1.85%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nikolay+Dubina). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Nikolay+Dubina)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.