Skip to content

Commit 8ecf631

Browse files
committed
Labels now work properly upon file opening.
1 parent 47767fc commit 8ecf631

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graph-creator",
3-
"version": "0.7.5",
3+
"version": "0.7.6",
44
"main": "index.html",
55
"window": {
66
"height": 1024,

src/fileWrite.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ function parseGraph(graph){
422422
group: 'nodes',
423423
data: {
424424
id: sourceNode
425+
},
426+
style: {
427+
label: sourceNode
425428
}
426429
});
427430
}catch(err){}
@@ -456,6 +459,9 @@ function parseGraph(graph){
456459
group: 'nodes',
457460
data: {
458461
id: targetNode
462+
},
463+
style: {
464+
label: sourceNode
459465
}
460466
});
461467
}catch(err){}

0 commit comments

Comments
 (0)