import Configurator from '../Configurator'; import Stater from '../Stater'; import Elementor from './Elementor'; import { TEventMap } from './types'; declare class ElState { _elementor: Elementor; private _configurator; private _stater; private _isAnimation; private _eventor; constructor(manager: { configurator: Configurator; elementor: Elementor; stater: Stater; }); get isUseAnimation(): boolean; get isAnimation(): boolean; onAnimationEnd: (callBack?: TEventMap['animationEnd']) => void; onSlideAnimation: () => void; offSlideAnimation: () => void; /** * 取得初始距離 */ private _getStartPosition; /** * Move Percentage * @param movePx */ getMovePercentage: (movePx: number) => number; /** * Percentage Move Percentage * @param percentage */ getPercentageToMovePx: (percentage: number) => number; /** * Get the target item distance width(px) * @param slideIndex */ getMoveDistance: (slideIndex: number) => number; /** * 設定是否移動中 * 加上狀態讓其他元素不會影響滑動 * @param isEnable */ setTouching: (isEnable: boolean) => void; transform(translateX: number, isUseAnimation?: boolean): this; /** * 移動效果 * @param percentage * @param isUseAnimation */ moveEffect(percentage: number, isUseAnimation?: boolean): this; /** * 移動效果 * @param el * @param percentageInfo * @param isUseAnimation */ private _effectFn; syncActiveState: () => void; animationStart: () => void; animationEnd: () => void; } export default ElState;