Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What This PR Does
This PR allows users to click and drag any point on the screen. I would record a Loom to demonstrate dragging behavior but recording is bugged out for me right now. As points are dragged, both the SVG circle and the corresponding dot on the scatterplot are updated. Releasing the mouse invokes a
DragHandler
function, which is similar to aClickHandler
.Additional Features
QuadTile
:visit_at_point(ix, callback)
: Finds a tile that contains a desired point and invokes a callback function. Uses a breadth-first search to check the targeted tile and it's childrenfind_point(ix)
: Finds a point with the target index. Consumesvisit_at_point
.update_point(ix, new_point)
: Updates the data for the point atix
. Consumesvisit_at_point
.assert
utility. Behaves similarly to node's assert, but does not require a polyfill