Skip to content

Commit 413a3f3

Browse files
committed
fix previous commit - accidentally hid top links unnecessarily
1 parent 03f4c56 commit 413a3f3

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

js/components/link.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class Link {
8888
let draggedHandle = null;
8989
let x = 0;
9090

91+
this.line.dblclick((e) => svg.fire('build-tree', { object: this, event: e }));
9192
this.line.node.oncontextmenu = (e) => {
9293
e.preventDefault();
9394
svg.fire('link-right-click', { object: this, type: 'link', event: e });

js/components/word.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class Word {
111111
});
112112

113113
// attach right click listener
114+
this.svgText.dblclick((e) => svg.fire('build-tree', { object: this, event: e }));
114115
this.svgText.node.oncontextmenu = (e) => {
115116
e.preventDefault();
116117
svg.fire('word-right-click', { object: this, event: e });

js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ const Main = (function() {
262262
if (!l.top) {
263263
bool ? l.show() : l.hide();
264264
}
265+
else {
266+
l.show();
267+
}
265268
});
266269
if (rm.rows.length > 0) {
267270
rm.resizeAll();

js/treelayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const TreeLayout = (function() {
106106
if (depth < maxDepth) {
107107
let links = node.links.filter(l => l.top);
108108
let args = [];
109-
let corefs = links.filter(x => !x.trigger)
109+
let corefs = links.filter(x => !x.trigger && (!source || x !== source.node))
110110
.map(coref => {
111111
return {
112112
type: coref.reltype,

0 commit comments

Comments
 (0)