diff --git a/webassets/iframe_visavis.html b/webassets/iframe_visavis.html index 44ceab5..924c6fc 100644 --- a/webassets/iframe_visavis.html +++ b/webassets/iframe_visavis.html @@ -91,6 +91,12 @@ window.addEventListener('hashchange', function(){ url_redraw_react(); }); + + window.plot.on_fixel_checked = (checked) => { + const link = window.plot.json_request(); + visavis_plot.json_request( checked ? `${link}&fixel=1` : link.replace('&fixel=1', '') ); + } + })();