@@ -375,6 +375,9 @@ plots.supplyDefaults = function(gd) {
375
375
376
376
var i ;
377
377
378
+ // Create all the storage space for frames, but only if doesn't already exist
379
+ if ( ! gd . _transitionData ) plots . createTransitionData ( gd ) ;
380
+
378
381
// first fill in what we can of layout without looking at data
379
382
// because fullData needs a few things from layout
380
383
@@ -435,7 +438,7 @@ plots.supplyDefaults = function(gd) {
435
438
}
436
439
437
440
// finally, fill in the pieces of layout that may need to look at data
438
- plots . supplyLayoutModuleDefaults ( newLayout , newFullLayout , newFullData ) ;
441
+ plots . supplyLayoutModuleDefaults ( newLayout , newFullLayout , newFullData , gd . _transitionData ) ;
439
442
440
443
// TODO remove in v2.0.0
441
444
// add has-plot-type refs to fullLayout for backward compatibility
@@ -474,12 +477,6 @@ plots.supplyDefaults = function(gd) {
474
477
( gd . calcdata [ i ] [ 0 ] || { } ) . trace = trace ;
475
478
}
476
479
}
477
-
478
- // Create all the storage space for frames, but only if doesn't already
479
- // exist:
480
- if ( ! gd . _transitionData ) {
481
- plots . createTransitionData ( gd ) ;
482
- }
483
480
} ;
484
481
485
482
// Create storage for all of the data related to frames and transitions:
@@ -1032,7 +1029,7 @@ function calculateReservedMargins(margins) {
1032
1029
return resultingMargin ;
1033
1030
}
1034
1031
1035
- plots . supplyLayoutModuleDefaults = function ( layoutIn , layoutOut , fullData ) {
1032
+ plots . supplyLayoutModuleDefaults = function ( layoutIn , layoutOut , fullData , transitionData ) {
1036
1033
var i , _module ;
1037
1034
1038
1035
// can't be be part of basePlotModules loop
0 commit comments