Appearance
@shbernal/pptxgenjs / index / coordToEmu
Function: coordToEmu()
coordToEmu(
value,axisEmu):Emu
Defined in: units.ts:84
The single user-coordinate → EMU boundary. Convert each user-supplied coordinate exactly once.
Accepts (see Coord):
- a bare
number→ always inches (the documented unit); no magnitude guessing "<n>%"→ percentage ofaxisEmu"<n>in"/"<n>pt"/"<n>emu"→ explicit units (the escape hatch for non-inch values)
Throws on non-finite or unparseable input rather than silently emitting a degenerate 0-size.
Parameters
value
string | number
user coordinate
axisEmu
number
axis length in EMU, used only to resolve percentages