dumptyd / vue-css-donut-chart

Lightweight Vue component for drawing pure CSS donut charts
https://dumptyd.github.io/vue-css-donut-chart/
MIT License
129 stars 19 forks source link

1.3.0: Add a prop to disable automatic font size recalculation #30

Closed dumptyd closed 4 years ago

dumptyd commented 4 years ago

This PR implements the following changes:

Library

Documentation

Demo

Implementation

Instead of simply returning from the font recalc function, I went with a slightly different approach that takes care of conditionally registering/removing resize listener for the chart based on the prop's value.

codecov[bot] commented 4 years ago

Codecov Report

Merging #30 into master will not change coverage by %. The diff coverage is 100.00%.

Impacted file tree graph

@@            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.