resolveFormatGeometry
Derive a rendered format's geometry.
Derive a rendered format’s geometry. Physical dimensions resolve to CSS px at 96/in; pixel formats are their own viewport at scale factor 1. The website format has no geometry and never reaches this function.
Import from @homepages/template-kit.
Signature
Section titled “Signature”function resolveFormatGeometry(format: ImageFormat | DocumentFormat): ResolvedFormatGeometryParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
format |
ImageFormat | DocumentFormat |
required |
Returns
Section titled “Returns”ResolvedFormatGeometry
See also
Section titled “See also”captureViewportframeTokensprintPageSizesettleCaptureCAPTURE_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