Constructors
Properties
clipsIds
clipsIds: string[]
Methods
adjustClipsLayout
- adjustClipsLayout(): void
Returns void
destroy
- destroy(): void
Returns void
getDuration
- getDuration(): number
Returns number
getNextEmptySpace
- getNextEmptySpace(startTime: number, endTime: number): number
Parameters
- startTime: number
- endTime: number
Returns number
getVisibility
- getVisibility(): boolean
Returns boolean
getVolume
- getVolume(): number
Returns number
hasEmptySpace
- hasEmptySpace(startTime: number, endTime: number): boolean
Parameters
- startTime: number
- endTime: number
Returns boolean
init
- init(): Promise<void>
Returns Promise<void>
isEmpty
- isEmpty(): boolean
Returns boolean
isMuted
- isMuted(): boolean
Returns boolean
moveClipToLayer
- moveClipToLayer(clipId: string, newLayerId: string): void
Parameters
- clipId: string
- newLayerId: string
Returns void
onPause
- onPause(currentTime: number): void
Returns void
onPlay
- onPlay(currentTime: number): Promise<void>
Returns Promise<void>
onResize
- onResize(width: number, height: number): void
Parameters
- width: number
- height: number
Returns void
removeClip
- removeClip(clipId: string): boolean
Returns boolean
removeTransition
- removeTransition(transitionId: string): void
Returns void
serialize
- serialize(): {
clips: any[];
id: string;
muted?: boolean;
transitions: {
endClipId: string;
id: string;
inDuration: number;
name: string;
outDuration: number;
startClipId: string;
transitionSrc: string;
type: "transition";
}[];
visible?: boolean;
volume?: number;
} Returns {
clips: any[];
id: string;
muted?: boolean;
transitions: {
endClipId: string;
id: string;
inDuration: number;
name: string;
outDuration: number;
startClipId: string;
transitionSrc: string;
type: "transition";
}[];
visible?: boolean;
volume?: number;
}
setMuted
- setMuted(muted: boolean): void
Returns void
setVisibility
- setVisibility(visible: boolean): void
Returns void
setVolume
- setVolume(volume: number): void
Returns void
setZIndex
- setZIndex(zIndex: number): void
Returns void
splitClip
- splitClip(
clipId: string,
time: number,
): Promise<null | Clip<Sprite, ClipStyle<Sprite>>> Parameters
- clipId: string
- time: number
update
- update(currentTime: number): void
Returns void
Static
deserialize
- deserialize(data: object): Layer