@dra2020/baseclient 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/baseclient.js +1 -1
- package/dist/baseclient.js.map +1 -1
- package/lib/poly/pointinpoly.ts +1 -1
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -5794,7 +5794,7 @@ function polyContainsPoint(poly, x, y) {
|
|
|
5794
5794
|
return;
|
|
5795
5795
|
let inside = false;
|
|
5796
5796
|
let iEnd = iOffset + (nPoints - 1) * 2;
|
|
5797
|
-
for (let i = iOffset, j = iEnd; i
|
|
5797
|
+
for (let i = iOffset, j = iEnd; i <= iEnd; j = i, i += 2) {
|
|
5798
5798
|
let xi = b[i], yi = b[i + 1];
|
|
5799
5799
|
let xj = b[j], yj = b[j + 1];
|
|
5800
5800
|
let intersect = ((yi > y) !== (yj > y))
|