MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / px

Function px

libs/htmlwidgets-1.5.3/htmlwidgets.js:195–200  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

193
194 // Makes a number suitable for CSS
195 function px(x) {
196 if (typeof(x) === "number")
197 return x + "px";
198 else
199 return x;
200 }
201
202 // Retrieves runtime widget sizing information for an element.
203 // The return value is either null, or an object with fill, padding,

Callers 1

initSizingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected