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

V6: Group rewrite - closed due to polluted history #7668

Closed
wants to merge 178 commits into from
Closed

V6: Group rewrite - closed due to polluted history #7668

wants to merge 178 commits into from

Conversation

ShaMan123
Copy link
Contributor

@ShaMan123 ShaMan123 commented Feb 10, 2022

Group Rewrite

Please read this carefully!
We will update this description continuously with relevant information so you won't need to scroll and read endless comments.

Motivation

#7473 #7316 #6776 #7136 #7299 #7130 #7142 #7449

Nested selection is a MUST.
Group isn't easy to use and is very limiting (e.g. resizing logic, customize rendering) and confusing (relative coordinate system and transform).
Rewriting Group is what fabric needs.

This reverts commit 02f3360.
This reverts commit 196867a.
This fixes eraser being positioned against current object transform instead of initial object transform
This reverts commit cce4ac1.
handle transform in dedicated clip path group instead of in canvas
Only erasable objects will be visibly affected by the eraser brush.
       * In order to support selective erasing all non erasable objects are rendered on the main ctx
       * while the entire canvas is rendered on the top ctx.
       * When erasing occurs, the path clips the top ctx and reveals the main ctx.
       * This achieves the desired effect of seeming to erase only erasable objects.
@ShaMan123
Copy link
Contributor Author

@asturur why does all these commits show here??

@ShaMan123
Copy link
Contributor Author

the commit history is trashed so I'm closing

@ShaMan123 ShaMan123 closed this Feb 10, 2022
@ShaMan123 ShaMan123 deleted the v6 branch February 10, 2022 12:58
@ShaMan123 ShaMan123 changed the title V6: Group rewrite V6: Group rewrite - closed due to polluted history Feb 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants