diff --git a/src/ProgressCircle.jsx b/src/ProgressCircle.jsx index 71b18c8..319c928 100644 --- a/src/ProgressCircle.jsx +++ b/src/ProgressCircle.jsx @@ -16,7 +16,13 @@ const ProgressCircle = ({ const width = size; const height = size; - const viewBox = [0, 0, width, height].join(' '); + const extraWidth = width * 0.1; + const extraHeight = height * 0.1; + + const viewBox = [ + -extraWidth, -extraHeight, + width + (2 * extraWidth), height + (2 * extraHeight), + ].join(' '); const cx = width / 2; const cy = height / 2; @@ -30,6 +36,8 @@ const ProgressCircle = ({ const strokeDasharray = strokeLength; const strokeDashoffset = strokeLength * (1 - finalProgress); + const dropShadowDefId = 'dropshadow'; + return (