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

getAbsolutePosition don't work with rotation #30

Closed
GMartigny opened this issue Jul 28, 2018 · 0 comments
Closed

getAbsolutePosition don't work with rotation #30

GMartigny opened this issue Jul 28, 2018 · 0 comments
Assignees
Labels
🐛 bug Something isn't working
Milestone

Comments

@GMartigny
Copy link
Member

Infos

Your current navigator: Chrome v65
The package you used: @pencil.js/container

Description

The function getAbsolutePosition returns wrong position when the container is nested inside another with a rotation.

Reproduce by

const parent = new Container([0, 0], {
  rotation: 0.5,
});
const child = new Container([10, 10]);
parent.add(child);

child.getAbsolutePosition(); // => fail
@GMartigny GMartigny added the 🐛 bug Something isn't working label Jul 28, 2018
@GMartigny GMartigny added this to the v1 milestone Jul 28, 2018
@GMartigny GMartigny self-assigned this Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant