MarkMindCkm / obsidian-markmind

A mind map, outline for obsidian,It support mobile and desktop
800 stars 35 forks source link

Rich mode - vertical timeline - new branches should be place at the end of the tree #865

Open joelscampos opened 4 months ago

joelscampos commented 4 months ago

Hi, thanks for the great work!!!

Whenever I try to move (drag) a branch in a tree, all the other branches move in a seemingly random manner.

Whenever I create a new branch below the"Root", I would expect that the new branch to be placed as the last branch, but it is not. The new branch is placed randomly, and the existing branches automatically move randomly.

Here is a screenshot:

image

Here is the code:

{"theme":"","mindData":[[{"id":"8dd973df-cab3-0ed9","text":"Calendar","isRoot":true,"main":true,"x":4000,"y":4000,"isExpand":true,"layout":{"layoutName":"multipleTree","direct":"multipleTree"},"note":"","stroke":""},{"id":"4c4e6b38-830c-2fdd","text":"Jan/24","stroke":"#07539e","x":4092,"y":4079,"layout":{"layoutName":"multipleTree","direct":"right"},"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"50a835b4-8acb-3463","text":"Apr/24","stroke":"#f497db","x":4092,"y":4294,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"22389fb4-4464-fd2b","text":"May/24","stroke":"#189b95","x":4092,"y":4396,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"2b4c0013-3fa9-fe4f","text":"Feb/24","stroke":"#8442d6","x":4092,"y":4498,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9","main":false},{"id":"d899872a-d284-3b3a","text":"Mar/24","stroke":"#738de2","x":3972,"y":4099,"main":false,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"a347001f-21fc-df7d","text":"Jun/24","stroke":"#738de2","x":3974,"y":4201,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"20799315-15c2-b0c4","text":"Jul/24","stroke":"#bcd7ff","x":3981,"y":4303,"layout":null,"isExpand":true,"pid":"8dd973df-cab3-0ed9"},{"id":"25506cf6-7599-abe6","text":"Sub title 1","stroke":"#07539e","x":4140,"y":4122,"layout":null,"isExpand":true,"pid":"4c4e6b38-830c-2fdd"},{"id":"c28c6c43-84da-75b1","text":"Sub title 2","stroke":"#07539e","x":4140,"y":4208,"layout":null,"isExpand":true,"pid":"4c4e6b38-830c-2fdd"},{"id":"43452682-9efd-4a50","text":"Sub title 5","stroke":"#f497db","x":4150.5,"y":4353,"layout":null,"isExpand":true,"pid":"50a835b4-8acb-3463"},{"id":"993fa28f-0231-3240","text":"Sub title 10","stroke":"#189b95","x":4153.5,"y":4455,"layout":null,"isExpand":true,"pid":"22389fb4-4464-fd2b"},{"id":"84f8aad1-2428-7143","text":"Sub title 9","stroke":"#8442d6","x":4152,"y":4557,"layout":null,"isExpand":true,"pid":"2b4c0013-3fa9-fe4f"},{"id":"a0b59aae-8837-e345","text":"Sub title 11","stroke":"#8442d6","x":4152,"y":4600,"layout":null,"isExpand":true,"pid":"2b4c0013-3fa9-fe4f"},{"id":"5d4c5f02-442a-0d30","text":"Sub title 7","stroke":"#738de2","x":3913,"y":4158,"layout":null,"isExpand":true,"pid":"d899872a-d284-3b3a"},{"id":"12f210a3-8c90-d20b","text":"test","stroke":"#738de2","x":3959,"y":4260,"layout":null,"isExpand":true,"pid":"a347001f-21fc-df7d"},{"id":"d82b348d-bc18-e137","text":"Sub title 3","stroke":"#07539e","x":4199.5,"y":4165,"layout":null,"isExpand":true,"pid":"25506cf6-7599-abe6"},{"id":"45ec3b14-7a00-bd4f","text":"Sub title 4","stroke":"#07539e","x":4199.5,"y":4251,"layout":null,"isExpand":true,"pid":"c28c6c43-84da-75b1"},{"id":"00db00f6-8f9a-b7d5","text":"Sub title 12","stroke":"#8442d6","x":4215.5,"y":4643,"layout":null,"isExpand":true,"pid":"a0b59aae-8837-e345"}]],"induceData":[],"wireFrameData":[],"relateLinkData":[],"calloutData":[]}

Could you change it so that new branches are be placed at the end of the tree?

MarkMindCkm commented 4 months ago

I know what you mean, currently the branches are evenly distributed on both sides

16

MarkMindCkm commented 4 months ago

111222

joelscampos commented 4 months ago

Is there a way to disable this auto-distribution, so I can manually position the branches?

See the problem: If my first-level branches already have some child branches, it becomes impossible to add new first-level branches and keep the tree ordered:

1) I have this tree: image

2) Trying to add new first-level branch:

qgsErpD9Pt