Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Image #1333

Open
jackfrost1411 opened this issue Dec 17, 2022 · 3 comments
Open

Background Image #1333

jackfrost1411 opened this issue Dec 17, 2022 · 3 comments

Comments

@jackfrost1411
Copy link

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?

@Yomguithereal
Copy link
Collaborator

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.

@tmsrise
Copy link

tmsrise commented Feb 16, 2023

@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.

@Yomguithereal
Copy link
Collaborator

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

@jacomyal jacomyal modified the milestone: v3 Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants