@@ -340,10 +340,12 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
340
340
// For the sake of animations, wrap the points around so that
341
341
// the points on the axes are the first two points. Otherwise
342
342
// 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 ) ;
344
345
} else {
345
346
// 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 ) ;
347
349
}
348
350
}
349
351
}
@@ -354,15 +356,17 @@ function plotOne(gd, idx, plotinfo, cdscatter, cdscatterAll, element, transition
354
356
// contours, we just add the two paths closed on themselves.
355
357
// This makes strange results if one path is *not* entirely
356
358
// 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 ) ;
358
361
}
359
362
else {
360
363
// tonextx/y: for now just connect endpoints with lines. This is
361
364
// the correct behavior if the endpoints are at the same value of
362
365
// y/x, but if they *aren't*, we should ideally do more complicated
363
366
// things depending on whether the new endpoint projects onto the
364
367
// 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 ) ;
366
370
}
367
371
trace . _polygons = trace . _polygons . concat ( prevPolygons ) ;
368
372
}
0 commit comments