scrptly
Version:
Scrptly is a Video Development Kit (VDK) for programmatically generating AI-powered videos.
18 lines (17 loc) • 767 B
TypeScript
import VisualLayer, { VisualLayerProperties, VisualLayerSettings } from './VisualLayer.js';
export interface CaptionsLayerSettings extends VisualLayerSettings {
source: string;
sourceType?: 'layer' | 'subtitles';
}
export interface CaptionsLayerProperties extends VisualLayerProperties {
}
export default class CaptionsLayer extends VisualLayer {
source: string;
sourceType: 'layer' | 'subtitles';
static type: string;
settings: CaptionsLayerSettings;
properties: CaptionsLayerProperties;
constructor(parent: any, properties: CaptionsLayerProperties | undefined, settings: CaptionsLayerSettings);
static get defaultSettings(): Partial<CaptionsLayerSettings>;
static get defaultProperties(): Partial<CaptionsLayerProperties>;
}