File tree 2 files changed +8
-14
lines changed
2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -155,14 +155,6 @@ exports.loneHover = function loneHover(hoverItem, opts) {
155
155
156
156
// The actual implementation is here:
157
157
function _hover ( gd , evt , subplot , noHoverEvent ) {
158
- if ( subplot === 'sankey' && ! noHoverEvent ) {
159
- gd . emit ( 'plotly_hover' , {
160
- event : evt . originalEvent ,
161
- points : [ evt ]
162
- } ) ;
163
- return ;
164
- }
165
-
166
158
if ( ! subplot ) subplot = 'xy' ;
167
159
168
160
// if the user passed in an array of subplots,
Original file line number Diff line number Diff line change @@ -128,10 +128,11 @@ module.exports = function plot(gd, calcData) {
128
128
} ;
129
129
130
130
var linkHover = function ( element , d , sankey ) {
131
- var evt = d . link ;
132
- evt . originalEvent = d3 . event ;
133
131
d3 . select ( element ) . call ( linkHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
134
- Fx . hover ( gd , evt , 'sankey' ) ;
132
+ gd . emit ( 'plotly_hover' , {
133
+ event : d3 . event ,
134
+ points : [ d . link ]
135
+ } ) ;
135
136
} ;
136
137
137
138
var linkHoverFollow = function ( element , d ) {
@@ -185,10 +186,11 @@ module.exports = function plot(gd, calcData) {
185
186
} ;
186
187
187
188
var nodeHover = function ( element , d , sankey ) {
188
- var evt = d . node ;
189
- evt . originalEvent = d3 . event ;
190
189
d3 . select ( element ) . call ( nodeHoveredStyle , d , sankey ) ;
191
- Fx . hover ( gd , evt , 'sankey' ) ;
190
+ gd . emit ( 'plotly_hover' , {
191
+ event : d3 . event ,
192
+ points : [ d . node ]
193
+ } ) ;
192
194
} ;
193
195
194
196
var nodeHoverFollow = function ( element , d ) {
You can’t perform that action at this time.
0 commit comments