@@ -305,39 +305,6 @@ HTMLWidgets.widget({
305305 } ) ;
306306 }
307307
308-
309- // send user input event data to dashR
310- // TODO: make this more consistent with Graph() props?
311- var dashRwidgets = window . dashRwidgets || { } ;
312- var dashRmode = typeof el . setProps === "function" &&
313- typeof dashRwidgets . htmlwidget === "function" ;
314- if ( dashRmode ) {
315- graphDiv . on ( 'plotly_relayout' , function ( d ) {
316- el . setProps ( { "input_plotly_relayout" : d } ) ;
317- } ) ;
318- graphDiv . on ( 'plotly_hover' , function ( d ) {
319- el . setProps ( { "input_plotly_hover" : eventDataWithKey ( d ) } ) ;
320- } ) ;
321- graphDiv . on ( 'plotly_click' , function ( d ) {
322- el . setProps ( { "input_plotly_click" : eventDataWithKey ( d ) } ) ;
323- } ) ;
324- graphDiv . on ( 'plotly_selected' , function ( d ) {
325- el . setProps ( { "input_plotly_selected" : eventDataWithKey ( d ) } ) ;
326- } ) ;
327- graphDiv . on ( 'plotly_unhover' , function ( eventData ) {
328- el . setProps ( { "input_plotly_hover" : null } ) ;
329- } ) ;
330- graphDiv . on ( 'plotly_doubleclick' , function ( eventData ) {
331- el . setProps ( { "input_plotly_click" : null } ) ;
332- } ) ;
333- // 'plotly_deselect' is code for doubleclick when in select mode
334- graphDiv . on ( 'plotly_deselect' , function ( eventData ) {
335- el . setProps ( { "input_plotly_selected" : null } ) ;
336- el . setProps ( { "input_plotly_click" : null } ) ;
337- } ) ;
338- }
339-
340-
341308 // Given an array of {curveNumber: x, pointNumber: y} objects,
342309 // return a hash of {
343310 // set1: {value: [key1, key2, ...], _isSimpleKey: false},
0 commit comments