fix top right border radius (#2522)

This commit is contained in:
flyskyko
2021-05-07 18:32:51 +09:00
committed by GitHub
parent 7222aba1b4
commit ba172678f0
2 changed files with 9 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export class BoundCurves {
? getCurvePoints(
bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth),
bounds.top + borderTopWidth,
topWidth > bounds.width + borderLeftWidth ? 0 : trh - borderLeftWidth,
topWidth > bounds.width + borderRightWidth ? 0 : trh - borderRightWidth,
trv - borderTopWidth,
CORNER.TOP_RIGHT
)