UNPKG

@omnimedia/omnitool

Version:

open source video processing tools

59 lines (48 loc) 688 B
import {Id, Hash} from "./basics.js" export enum Kind { Sequence, Stack, Clip, Text, Transition, } export enum Effect { Crossfade, } export namespace Item { export type Sequence = { id: Id kind: Kind.Sequence children: Id[] } export type Stack = { id: Id kind: Kind.Stack children: Id[] } export type Clip = { id: Id kind: Kind.Clip mediaHash: Hash start: number duration: number } export type Text = { id: Id kind: Kind.Text content: string } export type Transition = { id: Id kind: Kind.Transition effect: Effect.Crossfade duration: number } export type Any = ( | Sequence | Stack | Clip | Text | Transition ) }