Stop using getTransform (#950)

* Stop using getTransform

Fixes #861

The original motivation behind this is to make it work with Firefox. But it also helped make the code more intentional.

Test Plan:
- Create one square, select it, zoom in repeatedly, make sure that it zooms centered in the screen and everything looks good
- Scroll at various zoom levels, things look good
- Export a small scene at 1x and 3x, make sure the background is properly set and look good

* fix selection element
This commit is contained in:
Christopher Chedeau 2020-03-14 17:24:28 -07:00 committed by GitHub
parent dbfc8bee57
commit b20d4539c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 76 deletions

View file

@ -17,4 +17,4 @@ export {
hasText,
} from "./comparisons";
export { createScene } from "./createScene";
export { getZoomOrigin, getZoomTranslation, getNormalizedZoom } from "./zoom";
export { getZoomOrigin, getNormalizedZoom } from "./zoom";