@@ -311,7 +311,7 @@ function plotOne(gd, cd, element, transitionOpts) {
311
311
var next ;
312
312
313
313
if ( entryPrev ) {
314
- var a = pt . x1 > entryPrev . x1 ? 2 * Math . PI : 0 ;
314
+ var a = ( pt . x1 > entryPrev . x1 ? 2 * Math . PI : 0 ) + baseX ;
315
315
// if pt to remove:
316
316
// - if 'below' where the root-node used to be: shrink it radially inward
317
317
// - otherwise, collapse it clockwise or counterclockwise which ever is shortest to theta=0
@@ -361,7 +361,7 @@ function plotOne(gd, cd, element, transitionOpts) {
361
361
// if new branch, twist it in clockwise or
362
362
// counterclockwise which ever is shorter to
363
363
// its final angle
364
- var a = pt . x1 > nextX1ofPrevEntry ? 2 * Math . PI : 0 ;
364
+ var a = ( pt . x1 > nextX1ofPrevEntry ? 2 * Math . PI : 0 ) + baseX ;
365
365
prev = { x0 : a , x1 : a } ;
366
366
} else {
367
367
// if new leaf (when maxdepth is set),
@@ -376,7 +376,7 @@ function plotOne(gd, cd, element, transitionOpts) {
376
376
}
377
377
} else {
378
378
// start sector of new traces from theta=0
379
- prev = { x0 : 0 , x1 : 0 } ;
379
+ prev = { x0 : baseX , x1 : baseX } ;
380
380
}
381
381
}
382
382
@@ -419,11 +419,11 @@ function plotOne(gd, cd, element, transitionOpts) {
419
419
}
420
420
} else {
421
421
// if new root-node
422
- prev . x0 = prev . x1 = 0 ;
422
+ prev . x0 = prev . x1 = baseX ;
423
423
}
424
424
} else {
425
425
// on new traces
426
- prev . x0 = prev . x1 = 0 ;
426
+ prev . x0 = prev . x1 = baseX ;
427
427
}
428
428
}
429
429
0 commit comments