asdflkfjkadslghuier
Version:
Player for animated stickers
35 lines (34 loc) • 895 B
TypeScript
import type { CSSProperties } from 'react';
export interface PlayerRef {
pause: () => void;
play: () => void;
playSegments: (segments: number[], forceFlag: boolean) => void;
}
export interface PlayerEventListeners {
callback?: () => void;
eventName: string;
}
export interface PlayerOptions {
animationData?: any;
autoplay: boolean;
fileId?: number | string;
height?: number;
inViewportFunc?: boolean;
loop: boolean;
queueLength?: number;
stringData?: string;
width?: number;
}
export interface PlayerProps {
ariaLabel?: string;
ariaRole?: string;
eventListeners?: PlayerEventListeners[];
height?: number;
onClick?: () => void;
onMouseEnter?: () => void;
onMouseOut?: () => void;
options: PlayerOptions;
style?: CSSProperties;
title?: string;
width?: number;
}