-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ Grouping TableNodes without Relationships into a GroupNode and Applying a New Layout Definition #322
base: main
Are you sure you want to change the base?
Conversation
… and layout options for NonRelatedTableGroup nodes
const tableNodesInitialized = nodes | ||
.filter((node) => node.type === 'table') | ||
.some((node) => node.measured) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before adding the Group Node, nodesInitialized would become true only when the drawing occurred after the conversion to TableNode was completed by convertDBStructureToNodes()
.
However, with the addition of the Group Node, nodesInitialized started to become true even before the conversion to TableNode was completed. As a result, we created our own custom nodesInitialized
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! 🎉
Now, could you confirm if selecting All Fields
hides all nodes? 👀
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looked good!
This is great work! 😄
const tableNodesInitialized = nodes | ||
.filter((node) => node.type === 'table') | ||
.some((node) => node.measured) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that makes sense!
I didn't notice until you pointed it out... |
@junkisai |
Summary
I have grouped TableNodes without Relationships into a GroupNode, allowing a new layout definition to be applied.
The new layout definition arranges the Nodes in a single vertical column.