Skip to content

Commit

Permalink
Add *on_fixel_checked*
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin authored Jun 1, 2024
1 parent 2b0e1c1 commit 81bd81e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webassets/iframe_visavis.html
Original file line number Diff line number Diff line change
Expand Up @@ -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', '') );
}

})();
</script>
</head>
Expand Down

0 comments on commit 81bd81e

Please sign in to comment.