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

Left / right allign #7

Open
kisst opened this issue Apr 8, 2020 · 2 comments
Open

Left / right allign #7

kisst opened this issue Apr 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@kisst
Copy link
Owner

kisst commented Apr 8, 2020

Currently only supported to have a child item on the right of the parent, to make the map more symmetrical and less like a tree, the direction should be possible to choose.

@kisst kisst added the enhancement New feature or request label Apr 8, 2020
@evenicoulddoit
Copy link
Collaborator

From my understanding, this would be a lot of work, unless an off the shelf solution already exists. I had a little bit of a look at how the nodes are being positioned at the minute, and it's very trivial - for example the width of each node is exactly the same, and matches the longest text node x 10 (pixels). The X positioning of the node is then simply determined by multiplying this value by its depth in the tree.

Similar to changing font-sizing of certain elements, non-trivial.

@kisst
Copy link
Owner Author

kisst commented Apr 27, 2020

After reviewing few alternative editors, I concluded that the feature request above is way too ambitious, the majority of the editor do not have an option to change direction of the child items apart from the first level items, which in practice would mean for this lib, is that it's two tree, but within the tree no direction changes.
So in this-project only the following items would be able to set direction:

yq r data.yaml "this project" | grep -v "^[\ ]"
yaml: null
rich text:
d3j: null
tooling:
MVP:
Design principals:
Implementation:

With this change can we re-estimate the effort ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants