diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-26 00:30:00 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-26 15:15:51 +0800 |
commit | 30509b9bb858fa443fbb5b3d909278957b458c61 (patch) | |
tree | 04c2ba9015351ef60c7fc5480c117a39809c6a76 /src/Link.mjs | |
parent | 2a2acc8e31aef538a8e68e6b53cacafb38841c26 (diff) |
feat: add menu item to change path of leader-line
Diffstat (limited to 'src/Link.mjs')
-rw-r--r-- | src/Link.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Link.mjs b/src/Link.mjs index 031b125..590942c 100644 --- a/src/Link.mjs +++ b/src/Link.mjs | |||
@@ -64,6 +64,7 @@ export const GeoLink = (link) => { | |||
64 | hide: true, | 64 | hide: true, |
65 | middleLabel: labelText, | 65 | middleLabel: labelText, |
66 | path: 'magnet', | 66 | path: 'magnet', |
67 | path: link.dataset.linePath ?? 'magnet', | ||
67 | }) | 68 | }) |
68 | line.show('draw', { duration: 300 }) | 69 | line.show('draw', { duration: 300 }) |
69 | 70 | ||
@@ -181,7 +182,7 @@ export const DocLink = (link) => { | |||
181 | fontWeight: 'bold', | 182 | fontWeight: 'bold', |
182 | }), | 183 | }), |
183 | hide: true, | 184 | hide: true, |
184 | path: 'magnet', | 185 | path: link.dataset.linePath ?? 'magnet', |
185 | }) | 186 | }) |
186 | link.lines.push(line) | 187 | link.lines.push(line) |
187 | line.show('draw', { duration: 300 }) | 188 | line.show('draw', { duration: 300 }) |