Closed dumptyd closed 4 years ago
Merging #30 into master will not change coverage by
%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #30 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 115 121 +6
Branches 24 28 +4
=========================================
+ Hits 115 121 +6
Impacted Files | Coverage Δ | |
---|---|---|
src/components/Donut.vue | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 08dfbbf...aaf421b. Read the comment docs.
This PR implements the following changes:
Library
auto-adjust-text-size
boolean prop to enable/disable automatic font size recalculation. (resolves #29)Documentation
auto-adjust-text-size
.Demo
auto-adjust-text-size
on demo page.Implementation
Instead of simply
return
ing from the font recalc function, I went with a slightly different approach that takes care of conditionally registering/removingresize
listener for the chart based on the prop's value.