mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Small diamond distance fix
This commit is contained in:
parent
6e67aa3a3c
commit
1d293b9203
1 changed files with 8 additions and 10 deletions
|
@ -131,16 +131,14 @@ const createDiamondSide = (
|
||||||
startRadius: number,
|
startRadius: number,
|
||||||
endRadius: number,
|
endRadius: number,
|
||||||
): Segment<GlobalPoint> => {
|
): Segment<GlobalPoint> => {
|
||||||
const a = ellipseSegmentInterceptPoints(
|
return segment(
|
||||||
ellipse(s[0], startRadius, startRadius),
|
ellipseSegmentInterceptPoints(
|
||||||
s,
|
ellipse(s[0], startRadius, startRadius),
|
||||||
)[0];
|
s,
|
||||||
const b = ellipseSegmentInterceptPoints(
|
)[0] ?? s[0],
|
||||||
ellipse(s[1], endRadius, endRadius),
|
ellipseSegmentInterceptPoints(ellipse(s[1], endRadius, endRadius), s)[0] ??
|
||||||
s,
|
s[1],
|
||||||
)[0];
|
);
|
||||||
|
|
||||||
return segment(a, b);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue