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

swapObjects.js doesn’t swap the stacking order #12

Open
nclm opened this issue Dec 8, 2021 · 0 comments
Open

swapObjects.js doesn’t swap the stacking order #12

nclm opened this issue Dec 8, 2021 · 0 comments

Comments

@nclm
Copy link

nclm commented Dec 8, 2021

I’m looking into a way to replace many objects with new ones in a composition, and swapObjects.js seemed like the solution. However, if it does swap the x and y coordinates of the objects, it does not seem to swap the position in the layer stack. Rather, it seems to keep the previous stacking order of each object. This makes it a lot less useful when using it to place objects in an existing and sometimes complex composition.

For instance, I want to swap the blue square for the red-yellow object:

Here is what swapObjects.js does (the red-yellow object stays on top):

Expected result: the object would place itself between the two white squares, just like the blue square was:

Hope this makes sense. Any idea of a direction to look at in order to change this behaviour? Thanks!

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

No branches or pull requests

1 participant