fixes & tweaks

This commit is contained in:
zadam
2019-08-28 21:15:16 +02:00
parent 650d9e0b27
commit f331172c7d
10 changed files with 90 additions and 58 deletions

View File

@@ -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();
}
}
}