sulcgroup / oxdna-viewer

oxView: Visualization and editing tool for DNA/RNA nanotechnology and oxDNA/oxRNA configuration analysis
GNU General Public License v3.0
49 stars 19 forks source link

Fix broken links in the README and make it possible to change the visibility of arrows and box in an iframe #111

Closed lorenzo-rovigatti closed 1 year ago

lorenzo-rovigatti commented 1 year ago

This PR fixes 3 broken links I found in the README while reading it and make it possible to change the visibility of arrows and box in an iframe. In particular, the 'iframe_drop' message now supports the following 'view_settings' object that can be used as follows to control the visibility of the box and arrows:

[...]
view_settings = {"Box" : false, "Arrows" : true};
[...]
event.target.contentWindow.postMessage({
   message : 'iframe_drop', files: t_blobs, ext: t_ext, 
   inbox_settings: inbox_settings, view_settings: view_settings
   }, 
   "http://localhost:8080/");
lorenzo-rovigatti commented 1 year ago

The last commit I pushed is for a completely different feature because I didn't apply the best practice of using different branches for different features :-( I can update the description of the PR with what the new commit does (if you are interested in keeping it) or I can rebase so that only the README-related commits are retained. Sorry about that.