@@ -124,7 +124,8 @@ module.exports = function plot(gd, calcData) {
124124 } ;
125125
126126 var linkHoverFollow = function ( element , d ) {
127-
127+ var trace = gd . _fullData [ d . traceId ] ;
128+ var ptNumber = d . originalIndex ;
128129 var boundingBox = element . getBoundingClientRect ( ) ;
129130 var hoverCenterX = boundingBox . left + boundingBox . width / 2 ;
130131 var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
@@ -138,7 +139,11 @@ module.exports = function plot(gd, calcData) {
138139 [ 'Source:' , d . link . source . label ] . join ( ' ' ) ,
139140 [ 'Target:' , d . link . target . label ] . join ( ' ' )
140141 ] . filter ( renderableValuePresent ) . join ( '<br>' ) ,
141- color : Color . addOpacity ( d . tinyColorHue , 1 ) ,
142+ color : Fx . castHoverOption ( trace , ptNumber , 'bgcolor' ) || Color . addOpacity ( d . tinyColorHue , 1 ) ,
143+ borderColor : Fx . castHoverOption ( trace , ptNumber , 'bordercolor' ) ,
144+ fontFamily : Fx . castHoverOption ( trace , ptNumber , 'font.family' ) ,
145+ fontSize : Fx . castHoverOption ( trace , ptNumber , 'font.size' ) ,
146+ fontColor : Fx . castHoverOption ( trace , ptNumber , 'font.color' ) ,
142147 idealAlign : d3 . event . x < hoverCenterX ? 'right' : 'left'
143148 } , {
144149 container : fullLayout . _hoverlayer . node ( ) ,
@@ -171,7 +176,8 @@ module.exports = function plot(gd, calcData) {
171176 } ;
172177
173178 var nodeHoverFollow = function ( element , d ) {
174-
179+ var trace = gd . _fullData [ d . traceId ] ;
180+ var ptNumber = d . originalIndex ;
175181 var nodeRect = d3 . select ( element ) . select ( '.nodeRect' ) ;
176182 var boundingBox = nodeRect . node ( ) . getBoundingClientRect ( ) ;
177183 var hoverCenterX0 = boundingBox . left - 2 ;
@@ -188,7 +194,11 @@ module.exports = function plot(gd, calcData) {
188194 [ 'Incoming flow count:' , d . node . targetLinks . length ] . join ( ' ' ) ,
189195 [ 'Outgoing flow count:' , d . node . sourceLinks . length ] . join ( ' ' )
190196 ] . filter ( renderableValuePresent ) . join ( '<br>' ) ,
191- color : d . tinyColorHue ,
197+ color : Fx . castHoverOption ( trace , ptNumber , 'bgcolor' ) || d . tinyColorHue ,
198+ borderColor : Fx . castHoverOption ( trace , ptNumber , 'bordercolor' ) ,
199+ fontFamily : Fx . castHoverOption ( trace , ptNumber , 'font.family' ) ,
200+ fontSize : Fx . castHoverOption ( trace , ptNumber , 'font.size' ) ,
201+ fontColor : Fx . castHoverOption ( trace , ptNumber , 'font.color' ) ,
192202 idealAlign : 'left'
193203 } , {
194204 container : fullLayout . _hoverlayer . node ( ) ,
0 commit comments