Timeline for video editing(为视频编辑而写时间线)
MIT License
The video-editing-timeline repo contains three packages: video-editing-timeline (native version), video-editing-timeline-react (react version), and video-editing-timelinevue (vue version). You can install the corresponding version as required
cjs
、es
、umd
三种格式Vue
、React
组件包// npm
npm install video-editing-timeline --save
// yarn
yarn add video-editing-timeline
<canvas id='timeline' />
import VideoEditingTimeline from 'video-editing-timeline';
const config = {
el: "#canvas",
canvasWidth: 5000,
canvasHeight: 50,
minimumScale: 10, // 一个小刻度长度(单位px)
minimumScaleTime: 1, // 一个小刻度代表时间(单位秒)
}
const videoEditingTimeline = new VideoEditingTimeline(config)