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

Wrong positions on big screens

Open misha-erm opened this issue 1 month ago • 0 comments

Example bug report

Something goes wrong with positions of nodes after certain size. What can be the reason?

E.g. here screenshot of https://www.sigmajs.org/storybook/?path=/story/layouts--story with 2000x2000 dimensions. Everything is fine here

Image

But on 4000x4000 you can see that labels are misaligned with nodes and nodes go off screen

Image

any way to workaround this?

My main goal is to make a high-res screenshot of my graph.

Sigma.js version: the one from https://www.sigmajs.org/storybook/?path=/story/layouts--story Graphology version: the one from https://www.sigmajs.org/storybook/?path=/story/layouts--story Operating System: MacOS Tahoe 26.1 Web browser: Brave 1.84

Steps to reproduce

  • Go to https://www.sigmajs.org/storybook/?path=/story/layouts--story
  • turn on device mode
  • set screen resolution to 4000x4000 with dpr 2

Expected behavior

Labels should be aligned with nodes. Nodes should remain in screen

Actual behavior

Labels are misaligned Nodes go off the screen

misha-erm avatar Nov 27 '25 22:11 misha-erm