jsmind icon indicating copy to clipboard operation
jsmind copied to clipboard

Can I add relations (associative connections)?

Open lofti198 opened this issue 1 year ago • 6 comments

Hello! Can I add relations (associative connnections)? Like this image

If it is possible, how can I specify them in mind object like this: image

[ { id: 'root', isroot: true, topic: 'MainTopic' }, { id: 'subtopic1', parentid: 'root', topic: 'Subtopic1' }, { id: 'sub1', parentid: 'subtopic1', topic: 'Sub1' }, { id: 'sub11', parentid: 'sub1', topic: 'Sub11' }, { id: 'sub12', parentid: 'sub1', topic: 'Sub12' }, { id: 'sub121', parentid: 'sub12', topic: 'Sub121' }, { id: 'sub13', parentid: 'sub1', topic: 'Sub13' }, { id: 'sub2', parentid: 'subtopic1', topic: 'Sub2' }, { id: 'sub21', parentid: 'sub2', topic: 'Sub21' }, { id: 'sub22', parentid: 'sub2', topic: 'Sub22' }, { id: 'subtopic2', parentid: 'root', topic: 'Subtopic2' }, { id: 'sub3', parentid: 'subtopic2', topic: 'Sub3' }, ];

lofti198 avatar Aug 27 '22 07:08 lofti198

I’m afraid it’s not supported.🤷‍♂️

在 2022年8月27日,15:46,lofti198 @.***> 写道:

 Hello! Can I add relations (associative connnections)? Like this

If it is possible, how can I specify them in mind object like this:

[ { id: 'root', isroot: true, topic: 'MainTopic' }, { id: 'subtopic1', parentid: 'root', topic: 'Subtopic1' }, { id: 'sub1', parentid: 'subtopic1', topic: 'Sub1' }, { id: 'sub11', parentid: 'sub1', topic: 'Sub11' }, { id: 'sub12', parentid: 'sub1', topic: 'Sub12' }, { id: 'sub121', parentid: 'sub12', topic: 'Sub121' }, { id: 'sub13', parentid: 'sub1', topic: 'Sub13' }, { id: 'sub2', parentid: 'subtopic1', topic: 'Sub2' }, { id: 'sub21', parentid: 'sub2', topic: 'Sub21' }, { id: 'sub22', parentid: 'sub2', topic: 'Sub22' }, { id: 'subtopic2', parentid: 'root', topic: 'Subtopic2' }, { id: 'sub3', parentid: 'subtopic2', topic: 'Sub3' }, ];

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

hizzgdev avatar Aug 27 '22 08:08 hizzgdev

Ok thank you! If you suggest the direction how to implement it I would appreciate!

lofti198 avatar Aug 28 '22 08:08 lofti198

I prefer add a new field (relationship) in the Mind object, and build plugin for different type of relationship. Considering that there are different types, the relationship need to be implemented in the plugin.

For you case, I think you may need to get the point(In/Out) of the node, it is in the node object, you can get it in chrome console panel.

{
    "meta":{...},
    "format":"node_array",
    "data":[],
    "relationship": [
        {
            "relationType": "Type_Enum",
            ... varags depends on type
        },
        {
            "relationType": "Type_Enum",
            ... varags depends on type
        }
    ]
}

hizzgdev avatar Aug 28 '22 08:08 hizzgdev

Thank you for your fast help and cool library!

lofti198 avatar Aug 28 '22 12:08 lofti198

One more thing - do you take orders for paid adding features like this? And how much would that cost? image

lofti198 avatar Aug 28 '22 13:08 lofti198

Sorry, I have not a plan about the paid features yet. Because I can’t promise a clear timeline for them.

I will consider the feature more, and the paid support plan. But I guess it will take a long time.

hizzgdev avatar Aug 30 '22 17:08 hizzgdev