captureViewport
The viewport a capturer opens for a format: the bleed box rounded to whole CSS px (a browser viewport holds no fraction; the shell's `overflow: clip` absorbs the sub-pixel slack) at the format's device scale factor.
The viewport a capturer opens for a format: the bleed box rounded to whole
CSS px (a browser viewport holds no fraction; the shell’s overflow: clip
absorbs the sub-pixel slack) at the format’s device scale factor.
Import from @homepages/template-kit.
Signature
Section titled “Signature”function captureViewport(format: ImageFormat | DocumentFormat): CaptureViewportParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
format |
ImageFormat | DocumentFormat |
required |
Returns
Section titled “Returns”CaptureViewport
See also
Section titled “See also”frameTokensprintPageSizeresolveFormatGeometrysettleCaptureCAPTURE_HAS_ISLANDS_EXPRESSIONCAPTURE_ISLAND_PAINT_GRACE_EXPRESSIONCAPTURE_ISLAND_PAINT_GRACE_MSCAPTURE_ISLAND_QUIET_WINDOW_MSCAPTURE_ISLAND_SETTLE_TIMEOUT_MSCAPTURE_ISLANDS_READY_EXPRESSIONCAPTURE_ISLANDS_READY_GLOBALCAPTURE_READY_EXPRESSIONCAPTURE_WAIT_UNTILFRAME_ROOT_CLASSCaptureSettleHostCaptureViewportFormatIdentityFrameTokensPrintPageSizeResolvedFormatGeometryDocumentFormatImageFormatPhysicalLength