-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Combined (border+image) Program Node Rendering Issue
Description
When using a combined program (node-image and node-border) for rendering nodes, overlapping nodes appear messy. The nodes' borders are rendered separately and on a different layer from their images, resulting in a 'transparent background effect' or incorrect clipping areas. This issue is critical for large graphs, as graphology lacks collision layout, leading to massive node overlap.
Details
- Sigma.js version: 3.0.0-beta.18
- Graphology version: 0.25.4
- Operating system: Windows 11
- Web browser: Google Chrome Version 124.0.6367.202 (Official Build) (64-bit)
Steps to Reproduce
- Visit the live example: Codesandbox Example
- Observe the rendering of overlapping nodes.
Expected Behavior
When nodes overlap, their borders should be clipped accordingly, similar to the node 'B' in the reference image below:
Actual Behavior
Nodes' borders are displayed regardless of the nodes' z-position, leading to visual artifacts and a cluttered appearance:
Additional Information
This issue becomes more noticeable and problematic for large graphs due to the lack of collision layout in Graphology, causing significant node overlap.

