link map tweaks

This commit is contained in:
zadam
2019-08-30 20:15:59 +02:00
parent 89ed9027da
commit de95b92f90
7 changed files with 25 additions and 13 deletions
@@ -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);
+1 -1
View File
@@ -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
);
+2 -2
View File
@@ -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();