@@ -133,6 +133,7 @@ module.exports = function plot(gd, calcData) {
133
133
if ( gd . _fullLayout . hovermode === false ) return ;
134
134
d3 . select ( element ) . call ( linkHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
135
135
if ( d . link . trace . link . hoverinfo !== 'skip' ) {
136
+ d . link . fullData = d . link . trace ;
136
137
gd . emit ( 'plotly_hover' , {
137
138
event : d3 . event ,
138
139
points : [ d . link ]
@@ -156,6 +157,7 @@ module.exports = function plot(gd, calcData) {
156
157
var hoverCenterY = boundingBox . top + boundingBox . height / 2 ;
157
158
158
159
var hovertemplateLabels = { valueLabel : d3 . format ( d . valueFormat ) ( d . link . value ) + d . valueSuffix } ;
160
+ d . link . fullData = d . link . trace ;
159
161
160
162
var tooltip = Fx . loneHover ( {
161
163
x : hoverCenterX - rootBBox . left ,
@@ -190,6 +192,7 @@ module.exports = function plot(gd, calcData) {
190
192
if ( gd . _fullLayout . hovermode === false ) return ;
191
193
d3 . select ( element ) . call ( linkNonHoveredStyle . bind ( 0 , d , sankey , true ) ) ;
192
194
if ( d . link . trace . link . hoverinfo !== 'skip' ) {
195
+ d . link . fullData = d . link . trace ;
193
196
gd . emit ( 'plotly_unhover' , {
194
197
event : d3 . event ,
195
198
points : [ d . link ]
@@ -211,6 +214,7 @@ module.exports = function plot(gd, calcData) {
211
214
if ( gd . _fullLayout . hovermode === false ) return ;
212
215
d3 . select ( element ) . call ( nodeHoveredStyle , d , sankey ) ;
213
216
if ( d . node . trace . node . hoverinfo !== 'skip' ) {
217
+ d . node . fullData = d . node . trace ;
214
218
gd . emit ( 'plotly_hover' , {
215
219
event : d3 . event ,
216
220
points : [ d . node ]
@@ -231,6 +235,7 @@ module.exports = function plot(gd, calcData) {
231
235
var hoverCenterY = boundingBox . top + boundingBox . height / 4 - rootBBox . top ;
232
236
233
237
var hovertemplateLabels = { valueLabel : d3 . format ( d . valueFormat ) ( d . node . value ) + d . valueSuffix } ;
238
+ d . node . fullData = d . node . trace ;
234
239
235
240
var tooltip = Fx . loneHover ( {
236
241
x0 : hoverCenterX0 ,
@@ -266,6 +271,7 @@ module.exports = function plot(gd, calcData) {
266
271
if ( gd . _fullLayout . hovermode === false ) return ;
267
272
d3 . select ( element ) . call ( nodeNonHoveredStyle , d , sankey ) ;
268
273
if ( d . node . trace . node . hoverinfo !== 'skip' ) {
274
+ d . node . fullData = d . node . trace ;
269
275
gd . emit ( 'plotly_unhover' , {
270
276
event : d3 . event ,
271
277
points : [ d . node ]
0 commit comments