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
JSON format for layers (groups) #126
Comments
@forresto if we want to have nodes belonging only to a single group, we can constrain that on UI level. Typically with groups you want to be able to have a many-to-many relationship, so that is what we have on JSON level |
Here is the original groups format ticket: #62 |
Seems easier for things to match between JSON structure & UI. If groups are tree-like layers, then I'd vote for a change. If groups are many-to-many tags, the current system works, but seems less useful in the UI. We need a flat representation of a tree. Groups need a unique key in order to nest them inside each other. How should this work?
... seems fragile. If
... we could also take |
For many-to-many groups, a |
I'd start with what we have now, and consider changes only if necessary |
That's what I'm doing... groups need an id to reference a parent group so they can be hacked to work hierarchically in the UI. Should I make a new |
@forresto I'd try to avoid tree structures as long as possible |
Explain? They are required in some form to do collapsable groups with autolayout. Also for the photoshop layer style view. |
Before I work on flowhub/the-graph#43 much more I'd like to nail down the JSON format.
If we follow the convention of processes, then graph.groups should be an object.
For hierarchical organization and autolayout noflo/noflo-ui#53 , it would be better if each node could belong to only one group. So
node.metadata.group: groupKey
group.metadata.parent: groupKey
The text was updated successfully, but these errors were encountered: