@@ -58,8 +58,8 @@ function getXY(di, xa, ya, isHorizontal) {
5858 return isHorizontal ? [ s , p ] : [ p , s ] ;
5959}
6060
61- function transition ( selection , opts , makeOnCompleteCallback ) {
62- if ( hasTransition ( opts ) ) {
61+ function transition ( selection , fullLayout , opts , makeOnCompleteCallback ) {
62+ if ( ! fullLayout . uniformtext . mode && hasTransition ( opts ) ) {
6363 var onComplete ;
6464 if ( makeOnCompleteCallback ) {
6565 onComplete = makeOnCompleteCallback ( ) ;
@@ -212,13 +212,13 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
212212 y1 = fixpx ( y1 , y0 ) ;
213213 }
214214
215- var sel = transition ( Lib . ensureSingle ( bar , 'path' ) , opts , makeOnCompleteCallback ) ;
215+ var sel = transition ( Lib . ensureSingle ( bar , 'path' ) , fullLayout , opts , makeOnCompleteCallback ) ;
216216 sel
217217 . style ( 'vector-effect' , 'non-scaling-stroke' )
218218 . attr ( 'd' , 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z' )
219219 . call ( Drawing . setClipUrl , plotinfo . layerClipId , gd ) ;
220220
221- if ( hasTransition ( opts ) ) {
221+ if ( ! fullLayout . uniformtext . mode && hasTransition ( opts ) ) {
222222 var styleFns = Drawing . makePointStyleFns ( trace ) ;
223223 Drawing . singlePointStyle ( di , sel , trace , styleFns , gd ) ;
224224 }
@@ -412,7 +412,7 @@ function appendBarText(gd, plotinfo, bar, cd, i, x0, x1, y0, y1, opts, makeOnCom
412412 recordMinTextSize ( trace . type , transform , fullLayout ) ;
413413 calcBar . transform = transform ;
414414
415- transition ( textSelection , opts , makeOnCompleteCallback )
415+ transition ( textSelection , fullLayout , opts , makeOnCompleteCallback )
416416 . attr ( 'transform' , Lib . getTextTransform ( transform ) ) ;
417417}
418418
0 commit comments