MCPcopy Index your code
hub / github.com/PixelsCommander/HTML-GL / cssValueToPixels

Function cssValueToPixels

page/js/dat.gui.js:331–345  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

329 var CSS_VALUE_PIXELS = /(\d+(\.\d+)?)px/;
330
331 function cssValueToPixels(val) {
332
333 if (val === '0' || common.isUndefined(val)) return 0;
334
335 var match = val.match(CSS_VALUE_PIXELS);
336
337 if (!common.isNull(match)) {
338 return parseFloat(match[1]);
339 }
340
341 // TODO ...ems? %?
342
343 return 0;
344
345 }
346
347 /**
348 * @namespace

Callers 1

dat.gui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected