I hereby claim:
- I am robnagler on github.
- I am robnagler (https://keybase.io/robnagler) on keybase.
- I have a public key ASD_egfVpGfliNNCYul9yRqrKUsUcI-i-n_0lu_Grug3uQo
To claim this, I am signing this object:
| // https://github.com/European-XFEL/DAMNIT-web/blob/fd5658ab64654a27830b5868cb0d743607ae230d/frontend/src/features/table/use-pagination.ts | |
| export function usePagination(proposal, pageSize = 10) { | |
| const store = useAppStore() | |
| const pages = new Pages(store) | |
| const visibleRegion = reactive({ | |
| x: 0, | |
| y: 0, | |
| width: 0, | |
| height: 0 |
| $ 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 |
| f |
I hereby claim:
To claim this, I am signing this object:
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)