fixes to link parsing and tweaks

This commit is contained in:
zadam
2019-08-29 23:08:30 +02:00
parent 10d089240a
commit 1c0b55e422
4 changed files with 27 additions and 3 deletions

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
400.0, // Node repulsion
200.0, // Node repulsion
0.15 // Damping
);
@@ -79,6 +79,10 @@ export default class LinkMap {
const note = notes.find(n => n.noteId === noteId);
if (!note) {
return null;
}
const $noteBox = $("<div>")
.addClass("note-box")
.prop("id", noteBoxId);