(points, direction, options = {})
| 101624 | WINDING1[WINDING1["COUNTER_CLOCKWISE"] = -1] = "COUNTER_CLOCKWISE"; |
| 101625 | })(WINDING || (WINDING = {})); |
| 101626 | function modifyPolygonWindingDirection(points, direction, options = {}) { |
| 101627 | const windingDirection = getPolygonWindingDirection(points, options); |
| 101628 | if (windingDirection !== direction) { |
| 101629 | reversePolygon(points, options); |
| 101630 | return true; |
| 101631 | } |
| 101632 | return false; |
| 101633 | } |
| 101634 | function getPolygonWindingDirection(points, options = {}) { |
| 101635 | return Math.sign(getPolygonSignedArea(points, options)); |
| 101636 | } |
nothing calls this directly
no test coverage detected