link map WIP

This commit is contained in:
zadam
2021-05-30 23:21:34 +02:00
parent f5573fcad4
commit b351157a6a
2 changed files with 21 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ const TPL = `
}
.link-map-container {
max-height: 300px;
height: 300px;
}
.open-full-dialog-button {
@@ -22,11 +22,9 @@ const TPL = `
<button class="bx bx-expand icon-action open-full-dialog-button" title="Show Link Map dialog"></button>
<div class="link-map-container" style="height: 300px;"></div>
<div class="link-map-container"></div>
</div>`;
let linkMapContainerIdCtr = 1;
export default class LinkMapWidget extends NoteContextAwareWidget {
isEnabled() {
return this.note;
@@ -55,7 +53,9 @@ export default class LinkMapWidget extends NoteContextAwareWidget {
this.linkMapService = new LinkMapServiceClass(note, $linkMapContainer, {
maxDepth: 3,
zoom: 0.6
zoom: 0.6,
width: $linkMapContainer.width(),
height: $linkMapContainer.height()
});
await this.linkMapService.render();