Replies: 2 comments 2 replies
-
Hi @kosirm , what do you mean With jsMind, the mindmap will be exported as is and can be imported back to its original layout, if you are referring to If you want to automatically layout nodes counterclockwise when you add them, I think this might not be possible because you have to artificially decide which node to start with and turn to the right. If you can add nodes manually, you can try the following scripts, which allows you to position the nodes counterclockwise. jm.add_node('root', '1', '1', {}, 'left');
jm.add_node('root', '2', '2', {}, 'left');
jm.add_node('root', '3', '3', {}, 'left');
jm.add_node('root', '4', '4', {}, 'right');
jm.insert_node_before('4', '5', '5', {}, 'right');
jm.insert_node_before('5', '6', '6', {}, 'right'); |
Beta Was this translation helpful? Give feedback.
-
Thanks @kosirm , I think I understand you now. What you expect is that the nodes are sorted in counterclockwise order in the json file.
We didn't pay much attention to the JSON content. If you'd like, could you please share why you care about it? do you need to import/export it from/to other mindmap app?
|
Beta Was this translation helpful? Give feedback.
-
Dear Mr. Zhigang Zhang, thank you so much for this library! It is very good.
I have one problem. I would like to order first level children (first level after root, e.g. nodes with direction(left or right) property) to be oriented counter clockwise on map import/export. By default map is exported like this: root node, then left nodes from top to bottom, then right nodes from top to bottom. What I would like to achieve is this: root node, then left nodes from top to bottom, then right nodes from bottom to top. I'm attaching images to explain my desired output in json file.
Beta Was this translation helpful? Give feedback.
All reactions