From 2a3c177483ded4009bf25c32b287ae6637f152a1 Mon Sep 17 00:00:00 2001 From: janithwanni Date: Wed, 27 Mar 2024 16:54:31 +1100 Subject: [PATCH] :loud_sound: add debug logs --- inst/htmlwidgets/show_scatter_2d.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/htmlwidgets/show_scatter_2d.js b/inst/htmlwidgets/show_scatter_2d.js index 6d60b2f..16e1d9f 100644 --- a/inst/htmlwidgets/show_scatter_2d.js +++ b/inst/htmlwidgets/show_scatter_2d.js @@ -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);