Skip to content

Commit 472d0d1

Browse files
committed
no need to call _module.plot during layout-only transitions
1 parent 209d7b4 commit 472d0d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/plots/plots.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,8 +2573,10 @@ plots.transition2 = function(gd, restyleFlags, relayoutFlags, oldFullLayout) {
25732573
// This is since not all traces know about transitions, so it greatly simplifies matters if
25742574
// the trace is responsible for creating a callback, if needed, and then executing it when
25752575
// the time is right.
2576-
for(i = 0; i < basePlotModules.length; i++) {
2577-
basePlotModules[i].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);
2576+
if(restyleFlags.anim) {
2577+
for(i = 0; i < basePlotModules.length; i++) {
2578+
basePlotModules[i].plot(gd, transitionedTraces, traceTransitionOpts, makeCallback);
2579+
}
25782580
}
25792581

25802582
// If nothing else creates a callback, then this will trigger the completion in the next tick:

0 commit comments

Comments
 (0)