-
Notifications
You must be signed in to change notification settings - Fork 20
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
Handle first child specially #11
base: master
Are you sure you want to change the base?
Conversation
These are handy when the first child in the set needs to be handled specially.
Still need to resolve the case of having only one child. Namely does it go through first or last or possibly both and why. |
For handling the case where only one child exists for this (sub)tree.
Made the only child case a special case that can also be overridden. |
Also updated all styles to define these functions in a way that is compatible with their existing behavior. |
While this technically works and passes the tests, I'm not sure that it is helpful for solving my problem yet. Am trying to generate some HTML and CSS to make a visualization like this one (item 4) The code being generated needs to look something like this, but was having a hard time getting that behavior out of these functions. Ended up rolling my own function, but it would be better if that wasn't necessary. |
Opened issue ( #12 ) based on the last point. Namely handling cases of having or not having children specially. |
Closes #10
Adds
first_child_head
andfirst_child_tail
toStyle
and implements them in a compatible way forBoxStyle
. UpdatesLeftAligned
to handle the first child with these special methods.