Add clip details panel

This commit is contained in:
2022-05-02 16:09:02 +08:00
parent 7002d49155
commit e3681f2f32
11 changed files with 103 additions and 7 deletions
+8
View File
@@ -349,6 +349,14 @@ class Model extends Emitter<ModelEvent> {
return newClip;
}
public getClipById(id: ObjectID): Clip | undefined {
for (let i = 0; i < this.clipPool.length; i++) {
if (this.clipPool[i].id.toString() === id.toString()) {
return this.clipPool[i];
}
}
}
/**
* 删除一个剪辑片段
*/