-
Notifications
You must be signed in to change notification settings - Fork 517
Open
Description
如题,如果是先创建节点A,再创建节点B,然后连线A->B,那么展开/收缩按钮在A的下方,是正常的。但如果反过来连线B->A,此时展开/收缩按钮还是在A的下方,并且如果是收缩所有节点的情况下,也是展示的A节点,而不是B节点。我测试结果是和创建节点顺序有关系,展开/收缩按钮会出现在先创建的节点下方,并且优先展示该节点。这是什么情况,应该如何解决?
如图,我是先创建的10,再创建的11:

数据:
{
"rootId": "7453ae1a5a0b4147a2a2a467a29d10fd",
"nodes": [
{
"name": "测试",
"text": "测试",
"id": "7453ae1a5a0b4147a2a2a467a29d10fd",
"data": {
"createTime": 1763620914647,
"definition": "
"updateTime": 1763620914647,
"nodeTypes": [
"知识点",
"知识模块"
],
"relTypes": [
"包含",
"测试",
"思政点"
],
"labels": [
"知识图谱",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"className": "",
"type": "node",
"styleClass": "",
"isHide": false,
"isShow": true,
"expanded": true,
"singleNode": false,
"name": "1",
"x": 153.00824999999998,
"y": -22.78125,
"invisiable": false,
"fixed": false,
"id": "11a78174c84644c2a59a23c1707ec242",
"text": "1",
"opacity": 1,
"offset_x": 0,
"offset_y": 0,
"selected": false,
"fontColor": "#ffffff",
"disableDrag": false,
"zIndex": 0,
"data": {
"updateTime": 1763622418465,
"createTime": 1763620925043,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
}
},
{
"x": 193.00824999999998,
"name": "2",
"y": -132.78125,
"id": "edfaa49e043f4f34b08ad1966ebf4dc9",
"text": "2",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621018856,
"updateTime": 1763621018856,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 244.00824999999998,
"name": "3",
"y": 93.21875,
"id": "69e591743f5741a88748b5a69def6353",
"text": "3",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621022532,
"updateTime": 1763621022532,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 296.00825,
"name": "4",
"y": 42.21875,
"id": "0c5f347aae3341ff8d4b15409cb270c9",
"text": "4",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621058769,
"updateTime": 1763621058769,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 272.00825,
"name": "5",
"y": 152.21875,
"text": "5",
"id": "99bcd5d200bf44239f53c2609bc39dbc",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621073361,
"updateTime": 1763621073361,
"definition": "
555
","labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 549.00825,
"name": "6",
"y": 57.21875,
"id": "30704bfc45e547aebb65b2a4a5f42cf6",
"text": "6",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621391244,
"updateTime": 1763621391244,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 551.00825,
"name": "7",
"y": 187.21875,
"id": "53cb71287fa64a1199453a08603da758",
"text": "7",
"fontColor": "#ffffff",
"data": {
"createTime": 1763621397116,
"updateTime": 1763621397116,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"className": "",
"type": "node",
"styleClass": "",
"isHide": false,
"isShow": true,
"expanded": true,
"singleNode": false,
"name": "8",
"x": 844.00825,
"y": -256.78125,
"invisiable": false,
"fixed": false,
"id": "7ef0b515488d4cddb4f77bf1478f6023",
"text": "8",
"opacity": 1,
"offset_x": 0,
"offset_y": 0,
"selected": false,
"fontColor": "#ffffff",
"disableDrag": false,
"zIndex": 0,
"data": {
"updateTime": 1763622625749,
"createTime": 1763622387711,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
}
},
{
"x": 584.00825,
"name": "9",
"y": -70.78125,
"id": "8ba6130d0af7466896c94e7a066f048d",
"text": "9",
"fontColor": "#ffffff",
"data": {
"createTime": 1763622392730,
"updateTime": 1763622392730,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 517.00825,
"name": "10",
"y": -175.78125,
"id": "47efd64865314c39ac732f1066c48f2c",
"text": "10",
"fontColor": "#ffffff",
"data": {
"createTime": 1763623721048,
"updateTime": 1763623721048,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
},
{
"x": 634.00825,
"name": "11",
"y": -37.78125,
"id": "c1b81b514a5b47adbf41e91a93152177",
"text": "11",
"fontColor": "#ffffff",
"data": {
"createTime": 1763623724111,
"updateTime": 1763623724111,
"definition": "",
"labels": [
"知识点",
"_Graph_7453ae1a5a0b4147a2a2a467a29d10fd"
]
},
"expanded": true
}
],
"lines": [
{
"color": "#cccccc",
"createTime": 1763622607678,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763622607678,
"to": "7ef0b515488d4cddb4f77bf1478f6023",
"text": "包含",
"id": "e103d99d025545dd97fcbaa12fc09d25",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763622604060,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763622604060,
"to": "30704bfc45e547aebb65b2a4a5f42cf6",
"text": "包含",
"id": "c7763d75da1c44688ac62702c21e9f2d",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763622600974,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763622600974,
"to": "0c5f347aae3341ff8d4b15409cb270c9",
"text": "包含",
"id": "fca158e1ab5c4aa8903c1cd2d326eb76",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763621033547,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763621033547,
"to": "69e591743f5741a88748b5a69def6353",
"text": "包含",
"id": "aee4d88d0ad540208cf089d9fbddff27",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763621029955,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763621029955,
"to": "edfaa49e043f4f34b08ad1966ebf4dc9",
"text": "包含",
"id": "8f30c28ae6c844ea879c21d73af7f33c",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763621028021,
"from": "7453ae1a5a0b4147a2a2a467a29d10fd",
"updateTime": 1763621028021,
"to": "11a78174c84644c2a59a23c1707ec242",
"text": "包含",
"id": "a889e7ef21b441be9f27426cddb79cfb",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763621088758,
"from": "0c5f347aae3341ff8d4b15409cb270c9",
"updateTime": 1763621088758,
"to": "99bcd5d200bf44239f53c2609bc39dbc",
"text": "包含",
"id": "4489bcf13b344a7282b08dd6966730d2",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763621400307,
"from": "30704bfc45e547aebb65b2a4a5f42cf6",
"updateTime": 1763621400307,
"to": "53cb71287fa64a1199453a08603da758",
"text": "包含",
"id": "fe6e87311ed04a04854ae68601f35e4c",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763622396493,
"from": "7ef0b515488d4cddb4f77bf1478f6023",
"updateTime": 1763622396493,
"to": "8ba6130d0af7466896c94e7a066f048d",
"text": "包含",
"id": "273764ab4bc54ba19fc384e13c41fa46",
"fontColor": "#cccccc"
},
{
"color": "#cccccc",
"createTime": 1763624468455,
"from": "c1b81b514a5b47adbf41e91a93152177",
"updateTime": 1763624468455,
"to": "47efd64865314c39ac732f1066c48f2c",
"text": "包含",
"id": "ecae6586527a448c8abd27b939fa777e",
"fontColor": "#cccccc"
}
]
}
Metadata
Metadata
Assignees
Labels
No labels