Zoom and pan image using manual scaling for CanvasRenderingContext2D.drawImage with d3. Preserves aspect ratio of the image.
Based on Mike Bostock's Heatmap (Canvas, JSON)
Zoom and pan image using manual scaling for CanvasRenderingContext2D.drawImage with d3. Preserves aspect ratio of the image.
Based on Mike Bostock's Heatmap (Canvas, JSON)
I hereby claim:
To claim this, I am signing this object:
f |
$ pyenv global 2.7.14 | |
$ PYENV_DEBUG=1 PYENV_VERSION=3.6.6 pyenv which py.test | |
+ [pyenv:22] enable -f /home/vagrant/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath | |
+ [pyenv:29] '[' -z '' ']' | |
++ [pyenv:31] type -p greadlink readlink | |
++ [pyenv:31] head -1 | |
+ [pyenv:31] READLINK=/usr/bin/readlink | |
+ [pyenv:32] '[' -n /usr/bin/readlink ']' | |
+ [pyenv:54] '[' -z '' ']' | |
+ [pyenv:55] PYENV_ROOT=/home/vagrant/.pyenv |