Skip to content

Commit

Permalink
Fix Visavis integration
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Sep 9, 2024
1 parent 006fba6 commit 94bb527
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions webassets/iframe_visavis.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div id="main"></div>
<div id="switcher" title="Show interactive plot (experimental feature)"></div>

<script type="text/javascript" src="../src_js/third_party/visavis.js"></script>
<script type="text/javascript" src="../src_js/third_party/visavis.js?090924"></script>
<script type="text/javascript">
"use strict";

Expand Down Expand Up @@ -104,10 +104,6 @@
document.getElementById('main').innerHTML = '<mpds-visavis-plot fullscreen="true"></mpds-visavis-plot>';
window.plot = document.getElementsByTagName('mpds-visavis-plot')[0].view;
window.plot.notify = (msg) => window.parent.wmgui.notify(msg);
window.plot.on_fixel_checked = (checked) => {
const link = window.plot.json_request();
window.plot.json_request( checked ? `${link}&fixel=1` : link.replace('&fixel=1', '') );
}

if (!keep_state){
window.plot.json_request(url);
Expand Down

0 comments on commit 94bb527

Please sign in to comment.