mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
link map WIP
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user