Skip to content

Commit 6c5d5ee

Browse files
committed
adjust link label text
1 parent d8ce894 commit 6c5d5ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<div id="drawing">
7171

7272
</div>
73-
73+
7474

7575
<script src="libs/d3.min.js"></script>
7676
<script src="libs/svg.js"></script>
@@ -311,7 +311,7 @@
311311
var link = {
312312
sourceId: mention.arguments.controller.map(arg => arg.id),
313313
destinationId: [{
314-
name: "controlled",
314+
name: mention.displayLabel,
315315
id: mention.arguments.controlled.map(arg => arg.id)
316316
}],
317317
label: mention.displayLabel,
@@ -333,7 +333,7 @@
333333
sourceId: null,
334334
destinationId: null,
335335
words: wordDataArray.slice(start, end),
336-
label: mention.trigger.labels[0],
336+
label: mention.displayLabel,
337337
id: mention.trigger.id,
338338
charOffset: mention.trigger.characterStartOffset,
339339
type: mention.trigger.type
@@ -437,7 +437,7 @@
437437
destinationData.object,
438438
ltr ? 1 : -1,
439439
style,
440-
link.label,
440+
destination.name,
441441
texts.linkText
442442
);
443443

0 commit comments

Comments
 (0)