@@ -314,6 +314,7 @@ proto.update = function(data) {
314314 if ( this . linePlot ) this . linePlot . update ( lineOptions ) ;
315315 else {
316316 this . linePlot = createLinePlot ( lineOptions ) ;
317+ this . linePlot . _trace = this ;
317318 this . scene . glplot . add ( this . linePlot ) ;
318319 }
319320 } else if ( this . linePlot ) {
@@ -345,6 +346,7 @@ proto.update = function(data) {
345346 if ( this . scatterPlot ) this . scatterPlot . update ( scatterOptions ) ;
346347 else {
347348 this . scatterPlot = createScatterPlot ( scatterOptions ) ;
349+ this . scatterPlot . _trace = this ;
348350 this . scatterPlot . highlightScale = 1 ;
349351 this . scene . glplot . add ( this . scatterPlot ) ;
350352 }
@@ -375,6 +377,7 @@ proto.update = function(data) {
375377 if ( this . textMarkers ) this . textMarkers . update ( textOptions ) ;
376378 else {
377379 this . textMarkers = createScatterPlot ( textOptions ) ;
380+ this . textMarkers . _trace = this ;
378381 this . textMarkers . highlightScale = 1 ;
379382 this . scene . glplot . add ( this . textMarkers ) ;
380383 }
@@ -403,6 +406,7 @@ proto.update = function(data) {
403406 }
404407 } else if ( options . errorBounds ) {
405408 this . errorBars = createErrorBars ( errorOptions ) ;
409+ this . errorBars . _trace = this ;
406410 this . scene . glplot . add ( this . errorBars ) ;
407411 }
408412
@@ -419,6 +423,7 @@ proto.update = function(data) {
419423 } else {
420424 delaunayOptions . gl = gl ;
421425 this . delaunayMesh = createMesh ( delaunayOptions ) ;
426+ this . delaunayMesh . _trace = this ;
422427 this . scene . glplot . add ( this . delaunayMesh ) ;
423428 }
424429 } else if ( this . delaunayMesh ) {
0 commit comments