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

On a scaled canvas, a cache is scaled twice if the cache made after added to layer #785

Open
kzhdev opened this issue Jan 30, 2014 · 0 comments · May be fixed by #787
Open

On a scaled canvas, a cache is scaled twice if the cache made after added to layer #785

kzhdev opened this issue Jan 30, 2014 · 0 comments · May be fixed by #787
Labels

Comments

@kzhdev
Copy link
Contributor

kzhdev commented Jan 30, 2014

On a stage with scale {x: 2, y:2}:

If a cache made before added to the layer, it works as expected:
http://jsfiddle.net/kzhdev/EY3A6/12/

If a cache made after added to the layer, the cache is scaled twice.
http://jsfiddle.net/kzhdev/EY3A6/13/

It looks like when drawing a cache, it needs to take account layer scale.

kzhdev pushed a commit to kzhdev/KineticJS that referenced this issue Jan 30, 2014
kzhdev pushed a commit to kzhdev/KineticJS that referenced this issue Jan 31, 2014
kzhdev pushed a commit to kzhdev/KineticJS that referenced this issue Feb 1, 2014
kzhdev pushed a commit to kzhdev/KineticJS that referenced this issue Feb 1, 2014
@lavrton lavrton added the bug label Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants