New heuristic based on minimal arrow extent
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
aa91a3d610
commit
7abbb2afa3
@ -123,17 +123,7 @@ const calculatePadding = (
|
||||
|
||||
return size > 75
|
||||
? 40
|
||||
: Math.min(
|
||||
Math.max(
|
||||
headingIsHorizontal(startHeading) ? width / 2 - 1 : height / 2 - 1,
|
||||
10,
|
||||
),
|
||||
Math.max(
|
||||
headingIsHorizontal(endHeading) ? width / 2 - 1 : height / 2 - 1,
|
||||
10,
|
||||
),
|
||||
40,
|
||||
);
|
||||
: Math.min(Math.max(Math.min(width / 2 - 1, height / 2 - 1), 10), 40);
|
||||
};
|
||||
|
||||
const handleSegmentRenormalization = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user