mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
fixes & tweaks
This commit is contained in:
@@ -30,12 +30,18 @@ class LinkMapWidget extends StandardWidget {
|
||||
|
||||
const LinkMapServiceClass = (await import('../services/link_map.js')).default;
|
||||
|
||||
const linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer, {
|
||||
this.linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer, {
|
||||
maxDepth: 1,
|
||||
zoom: 0.7
|
||||
});
|
||||
|
||||
await linkMapService.render();
|
||||
await this.linkMapService.render();
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
if (this.linkMapService) {
|
||||
this.linkMapService.cleanup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user