A faster fisheye plugin for d3, directly combined with k-d tree for nearest neighbors search.
- Install and set up emscripten, to compile C++ code into JavaScript;
- Get nanoflann, a header-only k-d tree implementation in C++;
make
to generatefast_fisheye.em.js
fromfast_fisheye.cpp
.
Check fast_random_circles.html
. Cartesian Distortion is untouched and not sped up.
- Not fast enough. I guess some NN search techniques for moving query (= current cursor position) should help. Leave it as future work.
- Strangely much slower in Firefox.