@cornerstonejs/core
Version:
Cornerstone3D Core
20 lines (19 loc) • 1.03 kB
TypeScript
import type { DataAddOptions, LoadedData, RenderPathAttachment, RenderPathDefinition, RenderPath } from '../ViewportArchitectureTypes.js';
import ViewportType from '../../../enums/ViewportType.js';
import type { VideoDataPresentation, VideoElementRenderContext } from './VideoViewportTypes.js';
export declare class HtmlVideoRenderPath implements RenderPath<VideoElementRenderContext> {
addData(ctx: VideoElementRenderContext, data: LoadedData, options: DataAddOptions): Promise<RenderPathAttachment<VideoDataPresentation>>;
private updateDataPresentation;
private applyViewState;
private canvasToWorld;
private worldToCanvas;
private getCanvasMapping;
private getFrameOfReferenceUID;
private removeData;
}
export declare class HtmlVideoPath implements RenderPathDefinition<VideoElementRenderContext> {
readonly id = "video:html-element";
readonly type = ViewportType.VIDEO_NEXT;
matches(data: LoadedData, options: DataAddOptions): boolean;
createRenderPath(): HtmlVideoRenderPath;
}