react-d3-graph
react-d3-graph copied to clipboard
Performance issue with directed graphs + opacity on link/node
Describe the bug After switching to a directed graph I've noticed slightly worst performance. When navigating the map it seems to be a bit laggier, and it gets worse as more nodes and connections are added. Is this a known issue?
EDIT: The lag happens when BOTH directed is set to True and "opacity" for link is used. There also seems to be a slight performance issue when setting node opacity as well
To Reproduce Steps to reproduce the behavior:
- Set directed = true in config
- set opacity: 0.65 in Link config
Environment:
- OS: macOS
- Browser: chrome
- Version: 90
- Node version: 14.15.4
- react-d3-graph version: 2.6.0
- d3 version: 5.16.0
- react version: 16.13.1