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

Brackets missing in Example-1.5 #8

Open
udadi opened this issue Dec 23, 2013 · 1 comment
Open

Brackets missing in Example-1.5 #8

udadi opened this issue Dec 23, 2013 · 1 comment

Comments

@udadi
Copy link

udadi commented Dec 23, 2013

I believe it should have been
return { x: (x - bbox.left) * (canvas.width / bbox.width),
y: (y - bbox.top) * (canvas.height / bbox.height)
};
instead of(missing brackets)
return { x: x - bbox.left * (canvas.width / bbox.width),
y: y - bbox.top * (canvas.height / bbox.height)
};

in windowToCanvas method of example.js in example-1.5.

Upendra

@patentfox
Copy link

+1

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