prabushitha / gremlin-visualizer

visualize the graph network corresponding to a gremlin query
MIT License
227 stars 70 forks source link

2 add ability to assign custom icons to graph nodes #52

Closed joon-at-sri closed 1 month ago

joon-at-sri commented 1 month ago

if label is "person" can drop an image named "person_icon" into the assets/icons/ folder and upon refresh will update with that icon. Small bug however where you can't delete and add in the same file within the same npm run start session. Coudn't figure out how to fix this for now but can easily work around this by just rerunning "npm run start". For example after running npm run start and you delete an already existing img file named "software_icon" and refresh the page it still works. But when you drag an image another image with the same name "software_icon" it throws a compiler error. To resolve, just rerun npm run start and that fixes it.