Closed phamfoo closed 2 years ago
SVG only supports center stroke, but we want the stroke to stay inside the shape. At the moment, we work around this by drawing a slightly smaller path so that the stroke can fit inside. This solution, however, has some issues:
Rect
SquircleView
ClipPath
Hey @Krisztiaan I added you as a collaborator to this repo, still interested in reviewing this PR?
Thanks for the review @Krisztiaan 🙏, I'm merging this and cutting a new release soon.
SVG only supports center stroke, but we want the stroke to stay inside the shape. At the moment, we work around this by drawing a slightly smaller path so that the stroke can fit inside. This solution, however, has some issues:
Changes in this PR
Rect
component that helps provide the width/height of theSquircleView
.ClipPath
, this also removes the need to recalculate a new width/height/radius.