UNPKG

@diffusionstudio/core-v4

Version:

2D motion graphics and video rendering engine

32 lines (31 loc) 1.03 kB
import { BaseSource } from './base'; import { Constructor, int } from '../../types'; export declare function VisualSourceMixin<T extends Constructor<BaseSource>>(Base: T): { new (...args: any[]): { /** * The height of the source */ height: int; /** * The width of the source */ width: int; /** * The aspect ratio of the source */ readonly aspectRatio: number; id: string; data: Record<string, unknown>; readonly type: import('../..').ClipType; mimeType: string; input: import('../..').MediaInput; name: string; createdAt: Date; file?: import('../..').RemoteFile; init(options?: import('./base').SourceInitOptions): Promise<void>; arrayBuffer(): Promise<ArrayBuffer>; createCheckpoint(): Promise<unknown>; toJSON(exclude?: string[]): unknown; fromJSON<K = {}>(obj: K extends string ? never : K): /*elided*/ any; }; } & T;