sigma.js icon indicating copy to clipboard operation
sigma.js copied to clipboard

Background Image

Open jackfrost1411 opened this issue 3 years ago • 3 comments

Hello, I want to add a background image to the graph. How can I do this? Do sigma js have such a feature or property?

jackfrost1411 avatar Dec 17 '22 15:12 jackfrost1411

It mostly depends if you need it to move in sync with the graph camera or not. If you don't, simple html/css should suffice. If you need it to move, sigma.js does not provide this option per se but the renderer has a beforeRender & afterRender event you can listen to to make this work.

Yomguithereal avatar Dec 17 '22 15:12 Yomguithereal

@Yomguithereal Could you go into more detail using the events to move the background and what other pieces are needed? I'd greatly appreciate it.

tmsrise avatar Feb 16 '23 00:02 tmsrise

Sorry @tmsrise didn't have the time. This is basically the same concept as what's being demonstrating here with custom cluster labels: https://github.com/jacomyal/sigma.js/blob/main/examples/clusters-labels/index.ts#L74

Yomguithereal avatar Feb 06 '24 15:02 Yomguithereal