The links is so blurry unless we change if (this.graph.config.links_ontop) to if(true) in file src\litegraph.js line 7938.
|
if (this.graph.config.links_ontop) { |
Reproduce steps:
- git clone https://github.com/jagenjo/litegraph.js.git
- cd litegraph.js
- npm install
- node utils/server.js
- Open
Copy Paste demo.
- We can see that the links is blurry.
- Change
if (this.graph.config.links_ontop) to if(true) in file src\litegraph.js line 7938.
- Reload page and Open
Copy Paste demo.
- We can see that the links is clear.
Before
vs After
Upate: I just found the problem where it is. This is because we only scale the foreground canvas, but not the background canvas.
The links is so blurry unless we change
if (this.graph.config.links_ontop)toif(true)in filesrc\litegraph.jsline 7938.litegraph.js/src/litegraph.js
Line 7938 in 0555a2f
Reproduce steps:
Copy Pastedemo.if (this.graph.config.links_ontop)toif(true)in filesrc\litegraph.jsline 7938.Copy Pastedemo.Before
vs After
Upate: I just found the problem where it is. This is because we only scale the foreground canvas, but not the background canvas.