@diffusionstudio/core-v4
Version:
2D motion graphics and video rendering engine
37 lines (36 loc) • 1.23 kB
TypeScript
import { BaseSource, SourceOptions } from '../source';
import { ClipType } from '../../clips';
declare const HtmlSource_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 HtmlSource extends HtmlSource_base {
readonly type: ClipType;
element: HTMLIFrameElement;
constructor(options: SourceOptions);
init(): Promise<void>;
/**
* Access to the html document as loaded
* within the iframe. Can be manipulated with
* javascript
*/
get document(): Document | undefined;
get imageUrl(): string;
}
export {};