hikerpig / note-graph

A generic visualization lib designed to show the structure of the document space and the relations between each doc.
https://note-graph.hikerpig.vercel.app
MIT License
24 stars 0 forks source link

Coloring/Shaping by tag #21

Open Casyfill opened 3 years ago

Casyfill commented 3 years ago

Hey! That is amazing. Do you think it would be hard to make custom /configurable coloring, especially for tags? Also, I wonder if that is possible/ easy to pull all external links and visualize them as well...

hikerpig commented 3 years ago

@Casyfill Great idea! I will see if I can add proper support for coloring option of nodes. I actually get the very first version of code from the Foam vscode extension repo, and then polished it a lot to fit my own needs. After that I noticed there are a lot of other fantastic features in Foam but I havn't had the time to keep up with it.

And as for the external links, I have a vague idea of what you mean, are there some examples - screenshots or urls - for me to fully understand it?

Casyfill commented 3 years ago

Thanks, @hikerpig! That's funny because I got here from gatsby primer wiki theme for foam. And yeah that would be awesome to have.

re external links, I meant that it may be neat to have all HTTP links to external domains parsed and visualized, (e.g. this and this notes have links to google docs), but perhaps that's something worth a discussion in FOAM's graph library, and seems to be challenging enough.

Anyway, thanks for building that thing!

hikerpig commented 3 years ago

@Casyfill I've added some simple options in PR #22 , you can specify node colors by type or nodeStyle. You may check the demo on vercel. This will require the user (like gatsby primer wiki theme) to add some options.