-
-
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
[Bug?]: Support to ActiveSelection stack operation is gone #9730
Comments
Why you say is gone? |
No that I see |
Ok we have to decide if it is a regression or not and what to do. |
In fact since we introduced the parent property it is simple to re-expose object level stack methods |
Reconsidering this... |
i didn't give much time to this issue, but for first level objects could make sense. |
Support to ActiveSelection stack operations is gone in v6
In v5 you could do
activeSelection.sendBackwards()
. Group was not interactive so all selected objects were top level objects, direct descendants of canvas, so it made sense to handle moving them in the stack.However, in v6 a selection can contain objects from different levels of the object tree, performing stack operations on the selection will involve different stacks. It can be supported but it is a question if it should.
The issue is that it is breaking to do the following:
canvas.sendBackwards(activeSelection)
I think it might be best to make the following condition stricter:
fabric.js/src/Collection.ts
Line 219 in 631fe9b
into
idx > 0
From v5:
The text was updated successfully, but these errors were encountered: