Skip to content

Commit

Permalink
🔊 add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
janithwanni committed Oct 25, 2024
1 parent 6db1c3f commit 2a3c177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inst/htmlwidgets/show_scatter_2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ HTMLWidgets.widget({
if(HTMLWidgets.shinyMode) {
// register shiny callbacks
Shiny.addCustomMessageHandler("add-points", function(x) {
console.log("received add points in 2d mode");
var widget = HTMLWidgets.find(`#${x.id}`);
var scatter = widget.s;
scatter.addPoints(x.data)
})

Shiny.addCustomMessageHandler("add-edges", function(x) {
console.log("received add edges call in 2d mode");
var widget = HTMLWidgets.find(`#${x.id}`);
var scatter = widget.s;
scatter.addEdges(x.edges);
Expand Down

0 comments on commit 2a3c177

Please sign in to comment.