Closed krooldonutz closed 6 months ago
@krooldonutz It seems that you didn't add the topics in the right way. So far have you sorted out this issue? if not, I will do a troubleshooting on it.
@danielsss hi, sorry about that. I haven't fixed it yet and some help would be welcome :)
@danielsss hi, sorry about that. I haven't fixed it yet and some help would be welcome :)
I've tested the code. the problem is .add and .on which aren't in the right sequence.
[!TIP]
- .on - It means to make a topic as a parent node for the subsequent operations.
The example of how to fix the issue
if (rootTopicData.cid(findParent(translated_JSON, topicData.title)) == null){
rootTopicData.on(rootTopicData.cid("Central Topic")).add({ title: topicData.title });
} else {
rootTopicData.on(rootTopicData.cid(findParent(translated_JSON, topicData.title))).add({ title: topicData.title });
}
And the results are:
@danielsss Hi sorry, but the result you provided isn't the intended result. I still haven't found a fix, but thank you for helping me though!
Intended result:
your image:
@krooldonutz In according to the data you've provided that my result was seemingly right.
Anyway, you can change the data structure as below to get what you intended
{
"title": "Mind Map",
"topic": {
"title": "Indonesia",
"topics": [
{
"title": "I'm happy"
},
{
"title": "What's up"
},
{
"title": "I'm hungry"
},
{
"title": "Eat well",
"topics": [
{
"title": "seems delicious"
},
{
"title": "minum manis",
"topics": [
{
"title": "mantap"
},
{
"title": "Good Morning"
}
]
}
]
}
]
},
"structure": "org.xmind.ui.map.clockwise"
}
@danielsss oh my god you're right, thank you so much this tool will help me very much!
It's less of an Issue but I do need help here.
I tried to make some kind of translator in this by making the Xmin into a JSON which then after I translate, I will reconstruct.
But I have encountered a problem where while some of the topics are connected porperly, there are others that are connected to something unrelated. This is the JSON I have.
and the code I made it with
And it returns this
when it should be
It could be my algorithm thinking is wrong but also I don't really understand the SDK here. so any help would be appreciated :)