kisst / mindmap

d3j + yaml + html = magic
Apache License 2.0
3 stars 2 forks source link

Left / right allign #7

Open kisst opened 4 years ago

kisst commented 4 years ago

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.

evenicoulddoit commented 4 years ago

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 commented 4 years ago

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 ?