MCPcopy Create free account
hub / github.com/SpaceZephyr/myskill / pxToPoints

Function pxToPoints

pptx/scripts/html2pptx.js:262–262  ·  view source on GitHub ↗
(pxStr)

Source from the content-addressed store, hash-verified

260 // Unit conversion helpers
261 const pxToInch = (px) => px / PX_PER_IN;
262 const pxToPoints = (pxStr) => parseFloat(pxStr) * PT_PER_PX;
263 const rgbToHex = (rgbStr) => {
264 // Handle transparent backgrounds by defaulting to white
265 if (rgbStr === 'rgba(0, 0, 0, 0)' || rgbStr === 'transparent') return 'FFFFFF';

Callers 2

parseInlineFormattingFunction · 0.85
extractSlideDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected