mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
New heuristic based on minimal arrow extent
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
aa91a3d610
commit
7abbb2afa3
1 changed files with 1 additions and 11 deletions
|
@ -123,17 +123,7 @@ const calculatePadding = (
|
||||||
|
|
||||||
return size > 75
|
return size > 75
|
||||||
? 40
|
? 40
|
||||||
: Math.min(
|
: Math.min(Math.max(Math.min(width / 2 - 1, height / 2 - 1), 10), 40);
|
||||||
Math.max(
|
|
||||||
headingIsHorizontal(startHeading) ? width / 2 - 1 : height / 2 - 1,
|
|
||||||
10,
|
|
||||||
),
|
|
||||||
Math.max(
|
|
||||||
headingIsHorizontal(endHeading) ? width / 2 - 1 : height / 2 - 1,
|
|
||||||
10,
|
|
||||||
),
|
|
||||||
40,
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSegmentRenormalization = (
|
const handleSegmentRenormalization = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue