mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-22 17:00:40 +02:00
New heuristic based on minimal arrow extent
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -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 = (
|
||||
|
Reference in New Issue
Block a user