-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Adding Freehand with ClipPath to Object Group #6955
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
today there isn't. But is something we want to solve since long, together with clipPath blurryness. If you do not need much editing you can still clone you circle + drawing to image with the proper method, cutting away transparent pixels. If that would work for you i can try to write an example. |
I have solved this issue. It is related to progress made by #6994. I Thought I should PR this new functionality but wasn't sure it was needed |
My approach consists of creating a group that contains the circle and the path and a clip path identical to the circle. This way only the area of the circle will be visible. To make this work properly I have patched |
BTW I've patched the brush as well by applying a clip path to it so to create an effect that the brush draws only on the desired object |
duplicate #5431 |
Yes is a duplicate. |
Hello,
I am working with Fabricjs and i'd like to draw inside of a circle and have the path constrained to the circle. This includes the selection area of the group.
UPDATE:
Seem to have solved the first point
http://jsfiddle.net/42snph1d/14/
However, the selection are is too big. Anyway to reduce it so it is the side of the circle and not the path?
Is it possible to truncate the PATH to only include points inside the circle?
http://jsfiddle.net/42snph1d/12/
I am seeing weird artefacts when moving the object around.
Any obvious fixes here?
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: