GRNsight icon indicating copy to clipboard operation
GRNsight copied to clipboard

D-pad, zoom slider, and cursor drag do not move graph after export to SVG

Open ceciliazaragoza opened this issue 2 years ago • 3 comments

After exporting a graph to SVG, the D-pad can be clicked and the zoom slider can be moved. However, the cursor hand does not close, and the graph does not move and remains at the same zoom and position as when exported. However, if you reload the graph, choose a demo, or open a file, the cursor grab and zoom slider move the graph again. This issue is in the master branch as well.

ceciliazaragoza avatar Feb 13 '24 07:02 ceciliazaragoza

Suspicion here is that the export routine manipulates the SVG elements in-place to make them export ready but those changes then impact the web app. Ideally the SVG export operates on a deep copy of the SVG tree so that it doesn’t leave any unintended side effects

dondi avatar Feb 13 '24 18:02 dondi

This seems to be the same issue as in #1059 because the SVG is modifying the graph itself.

ceciliazaragoza avatar Apr 02 '24 16:04 ceciliazaragoza

To elaborate further, #1059 may be the root cause of this bug; that is currently assigned to @ntran18. @ceciliazaragoza will monitor both issues and update accordingly if it does turn out that they are bound together

dondi avatar Apr 02 '24 17:04 dondi