Files
libpgs-js/dist/pgsRendererInMainThread.d.ts
zoriya bfd15e68bc Commit the build output.
Not for upstream: this branch only exists so a consumer can depend on the fork
straight from git while the `ready` promise waits on a release.
2026-08-26 19:23:04 +02:00

30 lines
975 B
TypeScript

import { PgsRendererImpl } from "./pgsRendererImpl";
import { PgsRendererOptions } from "./pgsRendererOptions";
/**
* The implementation without web workers. This loads and renders the subtitle in the main thread.
* This is meant as a compatibility fallback if advanced workers are not supported.
*/
export declare class PgsRendererInMainThread extends PgsRendererImpl {
constructor(options: PgsRendererOptions, canvas: HTMLCanvasElement);
/**
* The PGS loader.
* @private
*/
private readonly pgs;
/**
* The subtitle renderer, running in the main thread.
*/
private readonly renderer;
protected render(index: number): void;
loadFromUrl(url: string): Promise<void>;
loadFromBuffer(buffer: ArrayBuffer): Promise<void>;
/**
* Submits the update timestamps from the pgs loader and invokes events.
*/
private invokeTimestampsUpdate;
/**
* Disposes the renderer.
*/
dispose(): void;
}