You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ export default class Flatbush {
206
206
* @param {number} minY
207
207
* @param {number} maxX
208
208
* @param {number} maxY
209
-
* @param {(index: number) => boolean} [filterFn] An optional function for filtering the results.
209
+
* @param {(index: number, x0: number, y0: number, x1: number, y1: number) => boolean} [filterFn] An optional function that is called on every found item; if supplied, only items for which this function returns true will be included in the results array.
210
210
* @returns {number[]} An array of indices of items intersecting or touching the given bounding box.
211
211
*/
212
212
search(minX,minY,maxX,maxY,filterFn){
@@ -226,17 +226,21 @@ export default class Flatbush {
226
226
// search through child nodes
227
227
for(let/** @type number */pos=nodeIndex;pos<end;pos+=4){
0 commit comments