Fixes stroke with on "drawn" shapes
This commit is contained in:
parent
5a7e79121a
commit
b27c487147
2 changed files with 2 additions and 2 deletions
|
@ -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 },
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue