-
Notifications
You must be signed in to change notification settings - Fork 4
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
vertical ordering of containers #32
Comments
you can try adjusting with the direction keyword, here is the layout with |
thx! |
Here a variation on this problem. There is probably no way to decide algorythmically whether the photosynthesis box should be on top or on the side of the nitrogen fixation box (except that this solution would use less space). When I was thinking of a layout grammar (for another project), I though of having syntax along the following lines:
i.e. each connection would have an optional direction keyword. Is that a feature that could be considered in the future?
|
oh this is very interesting. with However, What if there's a cycle though? E.g.
It wouldn't be possible to enforce this. This kind of thing feels hard to detect algorithmically, since there's 4 values here (top, left, right, bottom). I suppose TALA can just search to try to satisfy the constraints, and if it can't, it returns an error that a layout could not be found while trying to satisfy a direction constraint. The downside is that the error msg lacks clear action. We can say exactly which constraint caused the failure, but it could be that changing a constraint somewhere else fixes things. In any case, I really like this and we've done like 80% of the work towards this already. |
hmmh, the error could simply state the name of last element that fails (output the box in red?) The user can then try to untangle the chain. This is not too different from getting weird output if there are typos in one of the box names. |
you can now specify it precisely with positions: |
the direction per connection idea is still worth exploring through, i'll close this and move that here: #35 |
Is it possible to get the surface ocean container on top of the deep ocean container? The following code results in a good layout, but since the top and bottom are reversed, it could be more physical. Is there a way to get in the 'correct' order?
The text was updated successfully, but these errors were encountered: