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

View File

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

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
);

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

View File

@@ -366,7 +366,7 @@ body {
width: 99%; /* to give minimal right margin */
background-color: var(--button-background-color);
border-color: var(--button-border-color);
border-width: 1px 0 1px 0;
border-width: 1px;
border-radius: 4px;
border-style: solid;
display: flex;

View File

@@ -16,7 +16,7 @@
font-size: 11px;
width: auto;
height: auto;
max-width: 150px;
max-width: 200px;
min-width: 120px;
max-height: 100px;
overflow: hidden;
@@ -43,4 +43,13 @@
.link-map-container .jsplumb-connection-hover path {
stroke-width: 2 !important;
stroke: var(--main-text-color);
}
.link-map-widget {
outline: none;
overflow: hidden;
}
.link-map-widget .note-box .title {
font-size: 16px !important;
}