Variable applyCaptureCanvasSizeConst
applyCaptureCanvasSize: (
canvas: HTMLCanvasElement,
width: number,
height: number,
) => void = ...
Type Declaration
-
- (canvas: HTMLCanvasElement, width: number, height: number): void
-
Parameters
- canvas: HTMLCanvasElement
- width: number
- height: number
Returns void
Set a capture canvas's CSS width and height to the supplied finite positive dimensions. Invalid dimensions leave both current styles unchanged, allowing an untouched interactive canvas to keep its responsive CSS. This adapter does not set the backing raster, device pixel ratio, screenshot bounds or encoded video size; the rendering and capture hosts own their agreement with these CSS dimensions.