@cloudgpt/timeline-editor
Version:
Enhanced React timeline editor with advanced features including theme system, max duration controls, cursor customization, handle styling, and media support for video editing applications.
19 lines (18 loc) • 589 B
TypeScript
import { FC } from 'react';
import { OnScrollParams } from 'react-virtualized';
import { CommonProp } from '../../interface/common_prop';
import './time_area.less';
/** 动画时间轴组件参数 */
export type TimeAreaProps = CommonProp & {
/** 左侧滚动距离 */
scrollLeft: number;
/** 滚动回调,用于同步滚动 */
onScroll: (params: OnScrollParams) => void;
/** 设置光标位置 */
setCursor: (param: {
left?: number;
time?: number;
}) => void;
};
/** 动画时间轴组件 */
export declare const TimeArea: FC<TimeAreaProps>;