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
@@ -210,7 +210,7 @@ export default class Flatbush {
210
210
* @param {number} minY
211
211
* @param {number} maxX
212
212
* @param {number} maxY
213
-
* @param {(index: number) => boolean} [filterFn] An optional function for filtering the results.
213
+
* @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.
214
214
* @returns {number[]} An array of indices of items intersecting or touching the given bounding box.
215
215
*/
216
216
search(minX,minY,maxX,maxY,filterFn){
@@ -230,17 +230,21 @@ export default class Flatbush {
230
230
// search through child nodes
231
231
for(let/** @type number */pos=nodeIndex;pos<end;pos+=4){
0 commit comments