aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Link.mjs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Link.mjs b/src/Link.mjs
index 590942c..05134be 100644
--- a/src/Link.mjs
+++ b/src/Link.mjs
@@ -49,7 +49,7 @@ export const GeoLink = (link) => {
49 link.classList.add('with-leader-line', 'geolink') 49 link.classList.add('with-leader-line', 'geolink')
50 link.classList.remove('not-geolink') 50 link.classList.remove('not-geolink')
51 // TODO refactor as data attribute 51 // TODO refactor as data attribute
52 link.title = 'Left-Click to move Camera, Middle-Click to clean anchor' 52 link.title = 'Left-Click:\t move camera\nMiddle-Click: remove markers\nRight-Click:\t open menu'
53 link.targets = params.get('id')?.split(',') ?? null 53 link.targets = params.get('id')?.split(',') ?? null
54 link.lines = [] 54 link.lines = []
55 55
@@ -62,8 +62,10 @@ export const GeoLink = (link) => {
62 start: link, 62 start: link,
63 end: anchor, 63 end: anchor,
64 hide: true, 64 hide: true,
65 middleLabel: labelText, 65 middleLabel: LeaderLine.pathLabel({
66 path: 'magnet', 66 text: labelText,
67 fontWeight: 'bold',
68 }),
67 path: link.dataset.linePath ?? 'magnet', 69 path: link.dataset.linePath ?? 'magnet',
68 }) 70 })
69 line.show('draw', { duration: 300 }) 71 line.show('draw', { duration: 300 })