mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
Fine-tuning diamon intersections
This commit is contained in:
@ -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,
|
||||
)
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user