devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
46 lines (42 loc) • 1.45 kB
TypeScript
/**
* DevExtreme (animation/transition_executor.d.ts)
* Version: 23.2.6
* Build date: Wed May 01 2024
*
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
UserDefinedElementsArray,
} from '../core/element';
import {
DxPromise,
} from '../core/utils/deferred';
import {
AnimationConfig,
} from './fx';
/**
* The manager that performs several specified animations at a time.
*/
export default class TransitionExecutor {
/**
* Registers the set of elements that should be animated as 'entering' using the specified animation configuration.
*/
enter(elements: UserDefinedElementsArray, animation: AnimationConfig | string): void;
/**
* Registers a set of elements that should be animated as 'leaving' using the specified animation configuration.
*/
leave(elements: UserDefinedElementsArray, animation: AnimationConfig | string): void;
/**
* Deletes all the animations registered in the Transition Executor by using the enter(elements, animation) and leave(elements, animation) methods.
*/
reset(): void;
/**
* Starts all the animations registered using the enter(elements, animation) and leave(elements, animation) methods beforehand.
*/
start(): DxPromise<void>;
/**
* Stops all started animations.
*/
stop(): void;
}