quadtree.find(x, y, 0) should return [x, y] if it's present in the tree

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
data

Research direction

Start by reading the quadtree find implementation and its tests for a zero search radius. Reproduce the report with d3.quadtree().add([1, 2]).find(1, 2, 0) and check how the search handles a point exactly at the requested coordinates. Done means that call returns [1, 2] when the point is present; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Description

d3.quadtree().add([1, 2]).find(1, 2, 0) returns undefined, while I'd expect it to return [1, 2].

Dominant language
JavaScript
Stars
238
Forks
54
Avg merge
1d 13h
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from d3/d3-quadtree

All issues in d3/d3-quadtree

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.