Skip to content

v4.5.0

Latest

Choose a tag to compare

@mourner mourner released this 09 Aug 16:01
· 1 commit to main since this release
  • For search, pass item bounding box values to filterFn (#68), enabling the following pattern where a function is used to handle results instead of an array of ids:
index.search(10, 10, 20, 20, (i, x0, y0, x1, y1) => {
    console.log(`Item found: ${items[i]}, bbox: ${x0} ${y0} ${x1} ${y1}`);
})
  • Up to 20% faster k-nearest-neighbors queries on large k numbers.