mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Merge remote-tracking branch 'origin/pr/645'
This commit is contained in:
commit
364a8aac1c
@ -617,14 +617,14 @@ function calculateCurvePoints(bounds, borderRadius, borders) {
|
|||||||
width = bounds.width,
|
width = bounds.width,
|
||||||
height = bounds.height,
|
height = bounds.height,
|
||||||
|
|
||||||
tlh = borderRadius[0][0],
|
tlh = borderRadius[0][0] < width / 2 ? borderRadius[0][0] : width / 2,
|
||||||
tlv = borderRadius[0][1],
|
tlv = borderRadius[0][1] < height / 2 ? borderRadius[0][1] : height / 2,
|
||||||
trh = borderRadius[1][0],
|
trh = borderRadius[1][0] < width / 2 ? borderRadius[1][0] : width / 2,
|
||||||
trv = borderRadius[1][1],
|
trv = borderRadius[1][1] < height / 2 ? borderRadius[1][1] : height / 2,
|
||||||
brh = borderRadius[2][0],
|
brh = borderRadius[2][0] < width / 2 ? borderRadius[2][0] : width / 2,
|
||||||
brv = borderRadius[2][1],
|
brv = borderRadius[2][1] < height / 2 ? borderRadius[2][1] : height / 2,
|
||||||
blh = borderRadius[3][0],
|
blh = borderRadius[3][0] < width / 2 ? borderRadius[3][0] : width / 2,
|
||||||
blv = borderRadius[3][1];
|
blv = borderRadius[3][1] < height / 2 ? borderRadius[3][1] : height / 2;
|
||||||
|
|
||||||
var topWidth = width - trh,
|
var topWidth = width - trh,
|
||||||
rightHeight = height - brv,
|
rightHeight = height - brv,
|
||||||
|
Loading…
Reference in New Issue
Block a user