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

Node shape customization #289

Open
daniele-paltrinieri-79 opened this issue Dec 6, 2024 · 2 comments
Open

Node shape customization #289

daniele-paltrinieri-79 opened this issue Dec 6, 2024 · 2 comments

Comments

@daniele-paltrinieri-79
Copy link

Is your feature request related to a problem? Please describe.
Possibility to customize the shape of the node, when the node is a children of children

Describe the solution you'd like
Possibility to have a parameter, or a custom plugin, that allows to have children of level > 1 whit the same graphical representation of the first level children (bordered with label inside) and the path of connections joined to the border, instead of under the node label

Additional context
My request is to have the possibility to have the node labelled "test" with the same shape of the node "test gruppo"
image

The "test gruppo" is a first level child, while "test" is a second level child
image

Checking the code I think that the differences are based on the value of the parameter isFirst on the function mei.generateSubBranch and sub, but I have not understood if and what I can change in order to change the behavior.

@SSShooter
Copy link
Owner

To achieve the same graphical representation for second-level children as first-level ones, you can try using CSS selectors to target second-level nodes and style them accordingly. The mei.generateSubBranch function primarily affects branch styles, but it doesn’t handle node styles directly.

@daniele-paltrinieri-79
Copy link
Author

Ok, thank you. I'll try styling them with CSS

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

2 participants