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

1.7.0 canvas.clipTo function #3454

Closed
Godweed opened this issue Nov 25, 2016 · 2 comments
Closed

1.7.0 canvas.clipTo function #3454

Godweed opened this issue Nov 25, 2016 · 2 comments
Labels

Comments

@Godweed
Copy link

Godweed commented Nov 25, 2016

Canvas.clipTo function problem, looks like clipTo function overlay the object even it is inside the visible area after 1.7.0 update

Version

1.7.0

Test Case

with version 1.6.7
http://jsfiddle.net/d7w1nudj/
with version 1.7.0
http://jsfiddle.net/btLfdm0c/

Expected Behavior

Clip to function do not render object even inside the visible area

Actual Behavior

before 1.7.0 objects rendered properly inside canvas.clipTo function

@ncou
Copy link
Collaborator

ncou commented Nov 26, 2016

Seems like a bug with the cache.
For the moment you can disable the cache function (object caching = false) to have the right display :

http://jsfiddle.net/btLfdm0c/1/

@asturur asturur added the bug label Nov 26, 2016
@asturur
Copy link
Member

asturur commented Nov 26, 2016

So this is nothing i can really fix.
The clipTo function works with paths and not with cached images.
So the only way to clip correctly with a shape is to create the shape with objectCaching: false so that it will be drawn with normal code and will clip properly.

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

No branches or pull requests

3 participants