menpo / landmarker.io

Image and mesh annotation web application
https://www.landmarker.io
BSD 3-Clause "New" or "Revised" License
114 stars 21 forks source link

(WIP) make the viewport positioning work when there is an offset #143

Open jabooth opened 7 years ago

jabooth commented 7 years ago

This starts to standardize how we return the current mouse position in the div that is being used to render the viewport. Once complete we will be able to embed the viewport at an offset on a page and have it work. This is a step towards enabling the viewport to be used in other applications (e.g. as an IPython widget).

Also cleans up a few unnecessary imports.