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

Function pxToInch

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

Source from the content-addressed store, hash-verified

259
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

Callers 1

extractSlideDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected