Skip to content

Latest commit

 

History

History
82 lines (70 loc) · 1.03 KB

File metadata and controls

82 lines (70 loc) · 1.03 KB

Types

Separator

type Separator = "." | ",";

SubLike

type SubLike = SubSrt | SubVtt | SubFcpxml;

SubSrt

type SubSrt = {
	items: Array<{
		from: number;
		to: number;
		duration: number;
		text: string;
	}>;
};

SubVtt

type SubVtt = {
	items: Array<{
		from: number;
		to: number;
		duration: number;
		text: string;
	}>;
};

SubFcpxml

type SubFcpxml = {
	name: string;
	fps: number;
	gapDuration: string;
	sequenceDuration: string;
	items: Array<{
		text: string;
		from: number;
		to: number;
		duration: number;
		font: string;
		fontSize: string;
		fontFace: string;
		fontColor: string;
		bold: string;
		shadowColor: string;
		shadowOffset: string;
		alignment: string;
		titleOffset: string;
		titleDuration: string;
	}>;
};

DataToFcpxmlOptions

export type DataToFcpxmlOptions = {
	name?: string;
	font?: string;
	fontSize?: string;
	fontFace?: string;
	fontColor?: string;
	bold?: string;
	shadowColor?: string;
	shadowOffset?: string;
	alignment?: string;
};