@@ -132,10 +132,13 @@ module.exports = function plot(gd, calcData) {
132132 var linkHover = function ( element , d , sankey ) {
133133 if ( gd . _fullLayout . hovermode === false ) return ;
134134 d3 . select ( element ) . call ( linkHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
135- gd . emit ( 'plotly_hover' , {
136- event : d3 . event ,
137- points : [ d . link ]
138- } ) ;
135+ if ( d . link . trace . hoverinfo !== 'skip' ) {
136+ gd . emit ( 'plotly_hover' , {
137+ event : d3 . event ,
138+ points : [ d . link ]
139+ } ) ;
140+ }
141+
139142 } ;
140143
141144 var sourceLabel = _ ( gd , 'source:' ) + ' ' ;
@@ -146,6 +149,7 @@ module.exports = function plot(gd, calcData) {
146149 var linkHoverFollow = function ( element , d ) {
147150 if ( gd . _fullLayout . hovermode === false ) return ;
148151 var trace = d . link . trace ;
152+ if ( trace . hoverinfo === 'none' || trace . hoverinfo === 'skip' ) return ;
149153 var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
150154 var boundingBox = element . getBoundingClientRect ( ) ;
151155 var hoverCenterX = boundingBox . left + boundingBox . width / 2 ;
@@ -179,10 +183,12 @@ module.exports = function plot(gd, calcData) {
179183 var linkUnhover = function ( element , d , sankey ) {
180184 if ( gd . _fullLayout . hovermode === false ) return ;
181185 d3 . select ( element ) . call ( linkNonHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
182- gd . emit ( 'plotly_unhover' , {
183- event : d3 . event ,
184- points : [ d . link ]
185- } ) ;
186+ if ( d . link . trace . hoverinfo !== 'skip' ) {
187+ gd . emit ( 'plotly_unhover' , {
188+ event : d3 . event ,
189+ points : [ d . link ]
190+ } ) ;
191+ }
186192
187193 Fx . loneUnhover ( fullLayout . _hoverlayer . node ( ) ) ;
188194 } ;
@@ -198,15 +204,19 @@ module.exports = function plot(gd, calcData) {
198204 var nodeHover = function ( element , d , sankey ) {
199205 if ( gd . _fullLayout . hovermode === false ) return ;
200206 d3 . select ( element ) . call ( nodeHoveredStyle , d , sankey ) ;
201- gd . emit ( 'plotly_hover' , {
202- event : d3 . event ,
203- points : [ d . node ]
204- } ) ;
207+ if ( d . node . trace . hoverinfo !== 'skip' ) {
208+ gd . emit ( 'plotly_hover' , {
209+ event : d3 . event ,
210+ points : [ d . node ]
211+ } ) ;
212+ }
205213 } ;
206214
207215 var nodeHoverFollow = function ( element , d ) {
208216 if ( gd . _fullLayout . hovermode === false ) return ;
217+
209218 var trace = d . node . trace ;
219+ if ( trace . hoverinfo === 'none' || trace . hoverinfo === 'skip' ) return ;
210220 var nodeRect = d3 . select ( element ) . select ( '.' + cn . nodeRect ) ;
211221 var rootBBox = gd . _fullLayout . _paperdiv . node ( ) . getBoundingClientRect ( ) ;
212222 var boundingBox = nodeRect . node ( ) . getBoundingClientRect ( ) ;
@@ -243,10 +253,12 @@ module.exports = function plot(gd, calcData) {
243253 var nodeUnhover = function ( element , d , sankey ) {
244254 if ( gd . _fullLayout . hovermode === false ) return ;
245255 d3 . select ( element ) . call ( nodeNonHoveredStyle , d , sankey ) ;
246- gd . emit ( 'plotly_unhover' , {
247- event : d3 . event ,
248- points : [ d . node ]
249- } ) ;
256+ if ( d . node . trace . hoverinfo !== 'skip' ) {
257+ gd . emit ( 'plotly_unhover' , {
258+ event : d3 . event ,
259+ points : [ d . node ]
260+ } ) ;
261+ }
250262
251263 Fx . loneUnhover ( fullLayout . _hoverlayer . node ( ) ) ;
252264 } ;
0 commit comments