Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with canvas.setZoom(x) #3

Open
blobinabottle opened this issue Feb 28, 2017 · 2 comments
Open

doesn't work with canvas.setZoom(x) #3

blobinabottle opened this issue Feb 28, 2017 · 2 comments

Comments

@blobinabottle
Copy link

Hi

Great library. I have an issue so far: it doesn't work if you change canvas zoom level.
It also doesn't "drop" the shape on my canvas.

Any thought?

@blobinabottle
Copy link
Author

blobinabottle commented Feb 28, 2017

OK got it working with zoom by passing viewportTransform.

vp = this.canvas.viewportTransform;
ctx.transform(vp[0], vp[1], vp[2], vp[3], vp[4], vp[5]);      

@jonaslund
Copy link

Where in the code exactly did you add that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants