mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
lint
This commit is contained in:
parent
98000be0e0
commit
c2321a3bd6
2 changed files with 3 additions and 6 deletions
|
@ -2,7 +2,6 @@ import { simplify } from "points-on-curve";
|
|||
|
||||
import {
|
||||
polygonFromPoints,
|
||||
polygonIncludesPoint,
|
||||
lineSegment,
|
||||
lineSegmentIntersectionPoints,
|
||||
polygonIncludesPointNonZero,
|
||||
|
|
|
@ -59,11 +59,9 @@ export const polygonIncludesPointNonZero = <Point extends [number, number]>(
|
|||
windingNumber++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (yj <= y) {
|
||||
if ((xj - xi) * (y - yi) - (x - xi) * (yj - yi) < 0) {
|
||||
windingNumber--;
|
||||
}
|
||||
} else if (yj <= y) {
|
||||
if ((xj - xi) * (y - yi) - (x - xi) * (yj - yi) < 0) {
|
||||
windingNumber--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue