grantshandy / fdg

A Force Directed Graph Drawing Library
https://grantshandy.github.io/fdg
MIT License
192 stars 16 forks source link

Fix ImageSettings fallback condition #9

Closed AOx0 closed 1 year ago

AOx0 commented 1 year ago

I believe this condition is incorrect, we want to try de-serialize settings if it's not NULL and it's not UNDEFINED.

Else, if I pass NULL to the function it still throws an error, when I was expecting the default settings.

grantshandy commented 1 year ago

Sorry for getting around to this so late, thanks!