layout.setTweenDuration
setTweenDuration(ms: number): voidSet the default tween duration used by all subsequent layout calls.
Pass 0 to disable animation and snap positions instantly.
Not undoable (mutates an internal config field only).
Does not emit any event.
ms | number | Duration in milliseconds; 0 means instant. |
Returns: void
Example
api.layout.setTweenDuration(0); // disable animation
api.layout.setTweenDuration(1000); // slow 1-second tweens