hikerpig / gatsby-project-kb

Developing gatsby-theme-kb, a Gatsby theme for publishing Knowledge Base.
https://gatsby-project-kb.vercel.app/
MIT License
61 stars 15 forks source link

visible graph view by default #39

Open verbose-void opened 2 years ago

verbose-void commented 2 years ago

it would be cool to optionally always show the graph view in the corner of the screen for larger view screens like desktops. obsidian's layout is very nice: https://help.obsidian.md/Obsidian/Index

hikerpig commented 2 years ago

@nollied I would like to do that, too. But unfortunately I don't think force-graph's performance is good enough for this. Mainly because it depends on canvas and refresh the canvas on every frame to show the animation, it will defintely turn my MBP's fan into a noise maker 😭. Obsidian's team obviously developed a better solution - but not open source I think.

I did consider implementing a quieter version in note-graph, but I don't have much time and knowledge though.

Maybe we can keep this issue here, and see what will happen in 2022.

verbose-void commented 2 years ago

obsidian also uses a canvas, they can be quite slow, although the implementation you have for the graph view is pretty crispy.

have you given it a shot? my MBP doesn't have any problems manipulating it around and such.

if you really wanted to save the user some load, maybe even pausing the canvas when the cursor isn't hovering over it as a hack?

verbose-void commented 2 years ago

btw this is really cool. my dream lately has been using foam/logseq as an associative/hierarchical hybrid technical documentation suite. your project brings it one step closer allowing it to be deployed with the graph to a static github pages site!

hikerpig commented 2 years ago

Thank you for the suggestion, I may try to do some bench in a small canvas or hack it a little bit. I will post the updates here - once I have them 💪