Draggable notes #4807
Replies: 2 comments 1 reply
-
Hey guys, thanks to @perfectra1n i was able to compile the exe files. Unfortunately my changes and the code i did add in the src\public\app\widgets\note_map.js are not transferred to the build .exe file. I don´t understand why. Maybe sb. can help me. I would be interested in improving the note_map further in the future regarding the forces pulling at the notes. This code makes notes draggable in the dev env:
Iz allows me to drag the note like in the video but only if I start it via npm run start-server: Note_Map_-_Trilium.mp4In the built .exe file (build with the skript in ./bin) for the windows app (desktop), the functionality is gone and the code in the dev mode of the electron app doesn´t include my changes. I checked it in the started app, entering dev mode there via ctr+shift+i:
Somebody who can help me make this work? Seems like the desktop App or the electron-builder doesn´t use my changes but some other scrips... I would appreciate any help. For me this is one of the last features that makes the App perfect because it does help analysis a big highly relates mass if notes. Greetings. |
Beta Was this translation helpful? Give feedback.
-
I DID IT! You have to give it a new Version in the Package.json |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@zadam
I just added 4 lines of code to make the note mape even more usefull. But unfortunetly i don´t know how to compile it or create a .exe. Do you mind adding it to the next main version you release? I think it´s also usefull for others and it´s not a big change.
I know, trilium is in maintance mode. Just a suggestion. Here a Gif how the code provides draggable notes in the note map for better analysis:
All you need to do is add this to the note_map.js file when creating the graph.
this.graph
.onNodeDragEnd(node => {
node.fx = node.x;
node.fy = node.y;
}
I would appreciate any feedback. It works in the browser. Didn´t test it in desktop cause i don´t know how to compile.
Beta Was this translation helpful? Give feedback.
All reactions