From d256212b4cfdd75050a4eb80e36055a6ca09717b Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 26 Oct 2024 00:30:24 +0800 Subject: chore: looking of GeoLink --- src/Link.mjs | 8 +++++--- 1 file 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) => { link.classList.add('with-leader-line', 'geolink') link.classList.remove('not-geolink') // TODO refactor as data attribute - link.title = 'Left-Click to move Camera, Middle-Click to clean anchor' + link.title = 'Left-Click:\t move camera\nMiddle-Click: remove markers\nRight-Click:\t open menu' link.targets = params.get('id')?.split(',') ?? null link.lines = [] @@ -62,8 +62,10 @@ export const GeoLink = (link) => { start: link, end: anchor, hide: true, - middleLabel: labelText, - path: 'magnet', + middleLabel: LeaderLine.pathLabel({ + text: labelText, + fontWeight: 'bold', + }), path: link.dataset.linePath ?? 'magnet', }) line.show('draw', { duration: 300 }) -- cgit v1.2.3-70-g09d2