Fix rectangle quirk
This commit is contained in:
parent
dc8332c3dc
commit
2bc5717aae
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ function getRectangleDrawPoints(id: string, style: ShapeStyles, size: number[])
|
|||
const rm = Math.round(Math.abs(getRandom() * 2 * 4))
|
||||
|
||||
// Corner radii
|
||||
const rx = Math.min(w / 2, sw * 2)
|
||||
const ry = Math.min(h / 2, sw * 2)
|
||||
const rx = Math.min(w / 4, sw * 2)
|
||||
const ry = Math.min(h / 4, sw * 2)
|
||||
|
||||
// Number of points per side
|
||||
const px = Math.max(8, Math.floor(w / 16))
|
||||
|
|
Loading…
Reference in a new issue