fix: data integrity checks - better Stripping issue detection, v1.107.1

This commit is contained in:
Azgaar 2025-02-08 15:12:57 +01:00
parent 5bb33311fb
commit 22636b1b62
5 changed files with 21 additions and 7 deletions

View file

@ -4,6 +4,11 @@
// clip polygon by graph bbox
function clipPoly(points, secure = 0) {
if (points.length < 2) return points;
if (points.some(point => point === undefined)) {
ERROR && console.error("Undefined point in clipPoly", points);
return points;
}
return polygonclip(points, [0, 0, graphWidth, graphHeight], secure);
}