@@ -340,10 +340,12 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
340340 // For the sake of animations, wrap the points around so that
341341 // the points on the axes are the first two points. Otherwise
342342 // animations get a little crazy if the number of points changes.
343- transition ( ownFillEl3 ) . attr ( 'd' , 'M' + pt1 + 'L' + pt0 + 'L' + fullpath . substr ( 1 ) ) ;
343+ transition ( ownFillEl3 ) . attr ( 'd' , 'M' + pt1 + 'L' + pt0 + 'L' + fullpath . substr ( 1 ) )
344+ . call ( Drawing . singleFillStyle ) ;
344345 } else {
345346 // fill to self: just join the path to itself
346- transition ( ownFillEl3 ) . attr ( 'd' , fullpath + 'Z' ) ;
347+ transition ( ownFillEl3 ) . attr ( 'd' , fullpath + 'Z' )
348+ . call ( Drawing . singleFillStyle ) ;
347349 }
348350 }
349351 }
@@ -354,15 +356,17 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
354356 // contours, we just add the two paths closed on themselves.
355357 // This makes strange results if one path is *not* entirely
356358 // inside the other, but then that is a strange usage.
357- transition ( tonext ) . attr ( 'd' , fullpath + 'Z' + prevRevpath + 'Z' ) ;
359+ transition ( tonext ) . attr ( 'd' , fullpath + 'Z' + prevRevpath + 'Z' )
360+ . call ( Drawing . singleFillStyle ) ;
358361 }
359362 else {
360363 // tonextx/y: for now just connect endpoints with lines. This is
361364 // the correct behavior if the endpoints are at the same value of
362365 // y/x, but if they *aren't*, we should ideally do more complicated
363366 // things depending on whether the new endpoint projects onto the
364367 // existing curve or off the end of it
365- transition ( tonext ) . attr ( 'd' , fullpath + 'L' + prevRevpath . substr ( 1 ) + 'Z' ) ;
368+ transition ( tonext ) . attr ( 'd' , fullpath + 'L' + prevRevpath . substr ( 1 ) + 'Z' )
369+ . call ( Drawing . singleFillStyle ) ;
366370 }
367371 trace . _polygons = trace . _polygons . concat ( prevPolygons ) ;
368372 }
0 commit comments