mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-24 23:18:23 -05:00
link map tweaks
This commit is contained in:
@@ -33,6 +33,9 @@ export default class SidebarOptions {
|
||||
}
|
||||
|
||||
async optionsLoaded(options) {
|
||||
this.$widgetsEnabled.empty();
|
||||
this.$widgetsDisabled.empty();
|
||||
|
||||
this.$sidebarMinWidth.val(options.sidebarMinWidth);
|
||||
this.$sidebarWidthPercent.val(options.sidebarWidthPercent);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ export default class LinkMap {
|
||||
graph,
|
||||
// param explanation here: https://github.com/dhotson/springy/issues/58
|
||||
400.0, // Spring stiffness
|
||||
200.0, // Node repulsion
|
||||
400.0, // Node repulsion
|
||||
0.15 // Damping
|
||||
);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import StandardWidget from "./standard_widget.js";
|
||||
let linkMapContainerIdCtr = 1;
|
||||
|
||||
const TPL = `
|
||||
<div style="outline: none; overflow: hidden;">
|
||||
<div class="link-map-widget">
|
||||
<div class="link-map-container"></div>
|
||||
</div>
|
||||
`;
|
||||
@@ -32,7 +32,7 @@ class LinkMapWidget extends StandardWidget {
|
||||
|
||||
this.linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer, {
|
||||
maxDepth: 1,
|
||||
zoom: 0.8
|
||||
zoom: 0.6
|
||||
});
|
||||
|
||||
await this.linkMapService.render();
|
||||
|
||||
Reference in New Issue
Block a user