@diffusionstudio/core-v4
Version:
2D motion graphics and video rendering engine
29 lines (28 loc) • 978 B
TypeScript
import { BaseSource } from '../source';
import { ClipType } from '../../clips';
declare const ImageSource_base: {
new (...args: any[]): {
height: import('../..').int;
width: import('../..').int;
readonly aspectRatio: number;
id: string;
data: Record<string, unknown>;
readonly type: ClipType;
mimeType: string;
input: import('../..').MediaInput;
name: string;
createdAt: Date;
file?: import('../..').RemoteFile;
init(options?: import('..').SourceInitOptions): Promise<void>;
arrayBuffer(): Promise<ArrayBuffer>;
createCheckpoint(): Promise<unknown>;
toJSON(exclude?: string[]): unknown;
fromJSON<K = {}>(obj: K extends string ? never : K): /*elided*/ any;
};
} & typeof BaseSource;
export declare class ImageSource extends ImageSource_base {
readonly type: ClipType;
element: HTMLImageElement;
init(): Promise<void>;
}
export {};