-
Notifications
You must be signed in to change notification settings - Fork 514
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
constant near keys should be able to be set on containers #848
Comments
@donglixiaoche if you want to try a hard one! |
@alixander yep,a hard one,exactly what I want |
@donglixiaoche but people commonly want to make a legend, which is a container of stuff, and put it in the top-center. setting constant nears works roughly like:
for containers, i think you'll have to
|
@alixander just so you know, i'm still working on this issue... as you mentioned, for shapes with near keyword, before main layout, i need to remove that container and all descendants of that container. |
@donglixiaoche oh that's a good point, i didn't think about that.
yes, each constant-near-container would have to be its own graph. so you remove all the constant-near-containers, run layout on all of them (recursively), then run on the main graph, then re-insert all the objects and edges back into the main graph. quite complicated, let me know when you run into anything at all, always available to help |
@alixander i didn't think about the recursive way cause previously only root level shape could have a near attribute, ok then, let me think about it |
@donglixiaoche yeah wait actually that is the case right now. sorry got confused with this issue: #841 in that case, no need to handle non-root nears. they're still illegal for now |
as long as nothing within is connected to anything outside
The text was updated successfully, but these errors were encountered: