From 78c1b9c4903c07f8cacec843570177def1f2b55c Mon Sep 17 00:00:00 2001 From: Toby Dylan Hocking Date: Sun, 26 Jan 2025 16:39:47 +0100 Subject: [PATCH] driver step element uses viz id in addition to geom class --- inst/htmljs/animint.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inst/htmljs/animint.js b/inst/htmljs/animint.js index 29d6ae4f..eb709a96 100644 --- a/inst/htmljs/animint.js +++ b/inst/htmljs/animint.js @@ -186,7 +186,6 @@ var animint = function (to_select, json_file) { var add_geom = function (g_name, g_info) { // Determine if data will be an object or an array. // added geom properties in steps array - console.log(g_info); var geom = g_info.classed; var title = g_info.params.title || g_info.classed; var helpText = g_info.params.help || ''; @@ -205,7 +204,7 @@ var animint = function (to_select, json_file) { description = "No interactions available"; } steps.push({ // this add the geom to the steps array for guided tour - element: '.' + geom, + element: '#' + viz_id + ' .' + geom, popover: { title: title, description: description