Skip to content

Pt

Pt = number & object

Defined in: src/core/ir/units.ts:19

The IR’s one length unit: PostScript points (1/72 inch), as a branded number. Readers convert their format-native units (twips, half-points, EMU, …) to Pt at the boundary, and writers convert out the same way. The brand is shallow — a Pt is assignable to number so layout arithmetic reads it freely; only constructing one requires pt or a *ToPt converter.

readonly __brand: "pt"