jacomyal / sigma.js

A JavaScript library aimed at visualizing graphs of thousands of nodes and edges
https://www.sigmajs.org
MIT License
11.22k stars 1.59k forks source link

Glitch while rendering custom images #1383

Closed buger closed 11 months ago

buger commented 12 months ago

Guidelines

I cloned https://github.com/jacomyal/sigma.js/tree/main/demo and replaced it with my own data and new icons. Icons are in PNG format. Have not performed anything else custom.

When I reload the page, icons are glitching on load, see the video: https://www.loom.com/share/26d30cfbcc96459fabf3f32941ad0f7f

Any ideas? Happy to provide more debugging.

Issue visible for both Chrome and Safari

buger commented 12 months ago

Actually I realized that exactly the same issue visible on official demo too https://www.sigmajs.org/demo/index.html Just reload it a few times and forcing not using a cache. Sometimes it happens too fast, but if you look closely you will see that it spinning though the various icons, before it ends up with final icon.

buger commented 12 months ago

Seems like this issue was fixed in later versions of sigma. I updated it to latest version, and seems to be working!

jacomyal commented 12 months ago

OK, I couldn't reproduce it with the https://www.sigmajs.org/demo/index.html - but I've had recently multiple feedbacks on issues with the texture generation in this renderer indeed... You still see this issue with the online demo?

buger commented 11 months ago

On demo it is very hard to replicate because icons are svg, and there are a few of them. In my case it was a lot of PNG's. Anyway I'm closing it because with newer Sigma version issue got fixed.