Further fine-tune adaptive padding

This commit is contained in:
Mark Tolmacs 2025-04-13 13:08:22 +02:00
parent eaa869620e
commit c06b78c1b2
2 changed files with 6 additions and 6 deletions

View file

@ -117,8 +117,8 @@ const calculatePadding = (
const width = aabb[2] - aabb[0];
const height = aabb[3] - aabb[1];
const size = Math.max(width, height);
// || compareHeading(startHeading, flipHeading(endHeading))
return size > 55
return size > 75
? 40
: Math.min(
Math.max(