Appearance
@shbernal/pptxgenjs / index / Coord
Type Alias: Coord
Coord =
number|`${number}%`|`${number}in`|`${number}pt`|`${number}emu`
Defined in: core-interfaces.ts:25
Coordinate value. A bare number is always inches — there is no magnitude-based unit guessing. For other units use an explicit string suffix:
number→ inches (e.g.10.25)"<n>%"→ percentage of the slide axis (e.g."75%")"<n>in"→ inches (e.g."10.25in")"<n>pt"→ points (e.g."72pt"= 1 inch)"<n>emu"→ raw EMU, the escape hatch for exact OOXML units (e.g."914400emu"= 1 inch)
Examples
ts
10.25 // inchests
'75%' // percentage of slide sizets
'72pt' // pointsts
'914400emu' // raw EMU