vasturiano / 3d-force-graph

3D force-directed graph component using ThreeJS/WebGL
https://vasturiano.github.io/3d-force-graph/example/large-graph/
MIT License
4.67k stars 825 forks source link

onNodeClick work error #659

Open fengyunyang opened 9 months ago

fengyunyang commented 9 months ago

I now have a vue page, page structure.

<div style=" transform: scale(0.66667, 0.66667) translate(0%, 0%);"><div ref='3d-force-graph'></div></div>

Now the div where ref is 3d-force-graph is a diagram rendered with 3d-force-graph. Now because the outer div has been added with transform style, the coordinates of the diagram are misplaced. When the onNodeClick event of 3d-froce-graph is triggered, the node is selected incorrectly.