Skip to content

Commit f543871

Browse files
committed
assign fullTrace._input before apply-transform
- so that transform can use fullTrace._input, index and _expandedIndex
1 parent 2d56127 commit f543871

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plots/plots.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,10 @@ plots.supplyDataDefaults = function(dataIn, dataOut, layout) {
650650
var trace = dataIn[i],
651651
fullTrace = plots.supplyTraceDefaults(trace, cnt, layout);
652652

653+
fullTrace.index = i;
654+
fullTrace._input = trace;
655+
fullTrace._expandedIndex = cnt;
656+
653657
if(fullTrace.transforms && fullTrace.transforms.length) {
654658
var expandedTraces = applyTransforms(fullTrace, dataOut, layout);
655659

@@ -674,10 +678,6 @@ plots.supplyDataDefaults = function(dataIn, dataOut, layout) {
674678
}
675679
}
676680
else {
677-
fullTrace.index = i;
678-
fullTrace._input = trace;
679-
fullTrace._expandedIndex = cnt;
680-
681681
pushModule(fullTrace);
682682
}
683683
}

0 commit comments

Comments
 (0)