antvis/G6
The issue has been closed
Performance issue when shadow blur is enabled on Firefox #4206
jadenmazzone posted onGitHub
Describe the bug
On firefox, if shadow blur is enabled in the labelCfg
the performance drops heavily. The graph takes longer to load in and nodes are laggy/glitchy when dragged.
Your Example Website or App
https://codesandbox.io/s/dazzling-bush-2fkwiw
Steps to Reproduce the Bug or Issue
- Open Firefox and Chrome
- Open code box
- Drag nodes on both browsers
- Compare speeds
The root of the problem is the below in labelCfg
shadowOffsetX: 10,
shadowOffsetY: 10,
shadowColor: "blue",
shadowBlur: 10,
opacity: 0.8
Expected behavior
As a user, I expected no difference in performance between chrome and firefox.
Screenshots or Videos
Platform
- OS: macOS
- Browser: Chrome & Firefox 108.0.2 (64-bit)
- antv/G6 4.8.3
Additional context
No response