Fixes stroke with on "drawn" shapes

This commit is contained in:
Steve Ruiz 2021-06-08 12:06:24 +01:00
parent 5a7e79121a
commit b27c487147
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ function renderPath(shape: EllipseShape) {
}
const stroke = getStroke(points, {
size: 1 + strokeWidth * 2,
size: 1 + strokeWidth,
thinning: 0.6,
easing: (t) => t * t * t * t,
end: { taper: strokeWidth * 20 },

View file

@ -154,7 +154,7 @@ function renderPath(shape: RectangleShape) {
const stroke = getStroke(
[...lines.flat().slice(2), ...lines[0], ...lines[0].slice(4)],
{
size: 1 + +styles.strokeWidth * 2,
size: 1 + +styles.strokeWidth,
thinning: 0.6,
easing: (t) => t * t * t * t,
end: { taper: +styles.strokeWidth * 20 },