layout

layout.setTweenDuration

setTweenDuration(ms: number): void

Set 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.

msnumberDuration in milliseconds; 0 means instant.

Returns: void

Example

api.layout.setTweenDuration(0);    // disable animation
api.layout.setTweenDuration(1000); // slow 1-second tweens