mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fine-tuning diamon intersections
This commit is contained in:
parent
b6dea75d57
commit
55ba55fbbb
1 changed files with 2 additions and 1 deletions
|
@ -287,7 +287,8 @@ const intersectDiamondWithLineSegment = (
|
|||
]
|
||||
// Remove duplicates
|
||||
.filter(
|
||||
(p, idx, points) => points.findIndex((d) => pointsEqual(p, d)) === idx,
|
||||
(p, idx, points) =>
|
||||
points.findIndex((d) => pointsEqual(p, d, 1e-3)) === idx,
|
||||
)
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue